From bc67f2a10b3f7f42c6adfa713c771f899481b697 Mon Sep 17 00:00:00 2001 From: pedrorijo91 Date: Fri, 3 Jun 2016 11:35:00 +0100 Subject: [PATCH] Fix pr code style feedback --- lib/flay.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/flay.rb b/lib/flay.rb index 82a2a98..a28bc26 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 = {} @@ -571,7 +571,7 @@ def report_json io, data def report_io io, data io.puts "Total score (lower is better) = #{self.total}" - if option[:summary] + if option[:summary] then io.puts self.summary.sort_by { |_,v| -v }.each do |file, score| @@ -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)