diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2019-01-16 10:48:12 +0500 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2019-01-16 13:53:04 +0500 |
commit | c379973bceccbcd7b554f4a9c7026aca7cba4618 (patch) | |
tree | c2f4fc001f45459139f1f41732595707bdd69801 /lib/system_check | |
parent | a2b26577220643a865212cb297a2bf12338176ea (diff) | |
download | gitlab-ce-c379973bceccbcd7b554f4a9c7026aca7cba4618.tar.gz |
chore(rubocop): fix Style/TrivialAccessors issues
Diffstat (limited to 'lib/system_check')
-rw-r--r-- | lib/system_check/base_check.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/system_check/base_check.rb b/lib/system_check/base_check.rb index e06245294c4..46aad8aa885 100644 --- a/lib/system_check/base_check.rb +++ b/lib/system_check/base_check.rb @@ -70,18 +70,14 @@ module SystemCheck # multiple reasons why a check can fail # # @param [String] reason to be displayed - def skip_reason=(reason) - @skip_reason = reason - end + attr_writer :skip_reason # Skip reason defined during runtime # # This value have precedence over the one defined in the subclass # # @return [String] the reason - def skip_reason - @skip_reason - end + attr_reader :skip_reason # Does the check support automatically repair routine? # |