mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Fix Lint/BooleanSymbol (#24747)
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user