From b7ff9347e30f63b1eef901384b9981e7cbf87cd7 Mon Sep 17 00:00:00 2001 From: pedrorijo91 Date: Fri, 3 Jun 2016 11:33:13 +0100 Subject: [PATCH] Fix pr code style feedback --- lib/flay.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/flay.rb b/lib/flay.rb index 82a2a98..6188402 100755 --- a/lib/flay.rb +++ b/lib/flay.rb @@ -509,7 +509,7 @@ def report_json io, data json[:total] = self.total clones = [] - if option[:summary] + if option[:summary] then summary = [] self.summary.sort_by { |_,v| -v }.each do |file, score| file_json = {} @@ -588,7 +588,7 @@ def report_io io, data io.puts io.puts "%s%s code found in %p (mass%s = %d)" % - [prefix, match, item.name, item.bonus, item.mass] + [prefix, match, item.name, item.bonus, item.mass] item.locations.each_with_index do |loc, i| loc_prefix = "%s: " % (?A.ord + i).chr if option[:diff] @@ -619,7 +619,7 @@ def report io = $stdout data = analyze only - if option[:report] + if option[:report] then report_json(io,data) else report_io(io,data)