Skip to content

Commit afcc57c

Browse files
committed
Autocorrect rubocop offenses
1 parent 8b46c49 commit afcc57c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/simplecov/configuration.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def coverage_dir(dir = nil)
3535
return @coverage_dir if defined?(@coverage_dir) && dir.nil?
3636

3737
@coverage_path = nil # invalidate cache
38-
@coverage_dir = (dir || "coverage")
38+
@coverage_dir = dir || "coverage"
3939
end
4040

4141
#
@@ -140,7 +140,7 @@ def print_error_status
140140
def nocov_token(nocov_token = nil)
141141
return @nocov_token if defined?(@nocov_token) && nocov_token.nil?
142142

143-
@nocov_token = (nocov_token || "nocov")
143+
@nocov_token = nocov_token || "nocov"
144144
end
145145
alias skip_token nocov_token
146146

lib/simplecov/source_file/line.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def status
6565
return "skipped" if skipped?
6666
return "never" if never?
6767
return "missed" if missed?
68-
return "covered" if covered?
68+
69+
"covered" if covered?
6970
end
7071
end
7172
end

0 commit comments

Comments
 (0)