DEV: Fix Lint/BooleanSymbol (#24747)

This commit is contained in:
Jarek Radosz
2023-12-06 13:19:09 +01:00
committed by GitHub
parent 138bf486d3
commit 6a66dc1cfb
9 changed files with 13 additions and 7 deletions

View File

@ -89,6 +89,7 @@ class GlobalSetting
@skip_redis
end
# rubocop:disable Lint/BooleanSymbol
def self.use_s3?
(
@use_s3 ||=
@ -102,6 +103,7 @@ class GlobalSetting
end
) == :true
end
# rubocop:enable Lint/BooleanSymbol
def self.s3_bucket_name
@s3_bucket_name ||= s3_bucket.downcase.split("/")[0]