diff options
author | Dinesh Panda <dineshpanda92@gmail.com> | 2019-09-10 11:11:43 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-09-10 11:11:43 +0300 |
commit | 736b5908da637cbb35eb5fd1a10790c2ee17fcde (patch) | |
tree | 50d6d25be103c767e920cbfdf7df650670572fe6 /lib/system_check | |
parent | 4e9a93a38d0bbc6940a54b484b5d902f2d481a4d (diff) |
Avoid calling freeze on already frozen strings in lib
Diffstat (limited to 'lib/system_check')
-rw-r--r-- | lib/system_check/app/init_script_up_to_date_check.rb | 2 | ||||
-rw-r--r-- | lib/system_check/app/redis_version_check.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system_check/app/init_script_up_to_date_check.rb b/lib/system_check/app/init_script_up_to_date_check.rb index 569c41df6e4..7e2e168af8b 100644 --- a/lib/system_check/app/init_script_up_to_date_check.rb +++ b/lib/system_check/app/init_script_up_to_date_check.rb @@ -3,7 +3,7 @@ module SystemCheck module App class InitScriptUpToDateCheck < SystemCheck::BaseCheck - SCRIPT_PATH = '/etc/init.d/gitlab'.freeze + SCRIPT_PATH = '/etc/init.d/gitlab' set_name 'Init script up-to-date?' set_skip_reason 'skipped (omnibus-gitlab has no init script)' diff --git a/lib/system_check/app/redis_version_check.rb b/lib/system_check/app/redis_version_check.rb index 890f8b44d13..da695cc9272 100644 --- a/lib/system_check/app/redis_version_check.rb +++ b/lib/system_check/app/redis_version_check.rb @@ -3,7 +3,7 @@ module SystemCheck module App class RedisVersionCheck < SystemCheck::BaseCheck - MIN_REDIS_VERSION = '2.8.0'.freeze + MIN_REDIS_VERSION = '2.8.0' set_name "Redis version >= #{MIN_REDIS_VERSION}?" def check? |