Skip to content

Commit

Permalink
Autocorrect rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Dec 26, 2023
1 parent 3f29ede commit fe9a1bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/simplecov/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def coverage_dir(dir = nil)
return @coverage_dir if defined?(@coverage_dir) && dir.nil?

@coverage_path = nil # invalidate cache
@coverage_dir = (dir || "coverage")
@coverage_dir = dir || "coverage"
end

#
Expand Down Expand Up @@ -140,7 +140,7 @@ def print_error_status
def nocov_token(nocov_token = nil)
return @nocov_token if defined?(@nocov_token) && nocov_token.nil?

@nocov_token = (nocov_token || "nocov")
@nocov_token = nocov_token || "nocov"
end
alias skip_token nocov_token

Expand Down
3 changes: 2 additions & 1 deletion lib/simplecov/source_file/line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def status
return "skipped" if skipped?
return "never" if never?
return "missed" if missed?
return "covered" if covered?

"covered" if covered?
end
end
end
Expand Down

0 comments on commit fe9a1bc

Please sign in to comment.