From fe9a1bc958c33419674244982642207e87d050f2 Mon Sep 17 00:00:00 2001 From: Erik Berlin Date: Tue, 26 Dec 2023 03:02:28 -0800 Subject: [PATCH] Autocorrect rubocop offenses --- lib/simplecov/configuration.rb | 4 ++-- lib/simplecov/source_file/line.rb | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/simplecov/configuration.rb b/lib/simplecov/configuration.rb index 617e5f6e..688ddfae 100644 --- a/lib/simplecov/configuration.rb +++ b/lib/simplecov/configuration.rb @@ -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 # @@ -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 diff --git a/lib/simplecov/source_file/line.rb b/lib/simplecov/source_file/line.rb index 7aab40c2..2491e586 100644 --- a/lib/simplecov/source_file/line.rb +++ b/lib/simplecov/source_file/line.rb @@ -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