Skip to content

Commit

Permalink
Fix pr code style feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorijo91 committed Jun 3, 2016
1 parent a8e6ebf commit bc67f2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/flay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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|
Expand All @@ -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]
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit bc67f2a

Please sign in to comment.