Skip to content

Commit

Permalink
Correct Style/ZeroLengthPredicate
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Jan 2, 2023
1 parent 0acd97f commit d1bfa75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simplecov/source_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def covered_strength
end

def no_lines?
lines.length.zero? || (lines.length == never_lines.size)
lines.empty? || (lines.length == never_lines.size)
end

def relevant_lines
Expand Down

0 comments on commit d1bfa75

Please sign in to comment.