Commit 0275c26e authored by Michael Kozono's avatar Michael Kozono

Invert method for readability

parent 375f4745
...@@ -44,20 +44,20 @@ module EE ...@@ -44,20 +44,20 @@ module EE
def show_enable_hashed_storage_warning? def show_enable_hashed_storage_warning?
return if user_dismissed?(GEO_ENABLE_HASHED_STORAGE) return if user_dismissed?(GEO_ENABLE_HASHED_STORAGE)
hashed_storage_disabled? !hashed_storage_enabled?
end end
def show_migrate_hashed_storage_warning? def show_migrate_hashed_storage_warning?
return if user_dismissed?(GEO_MIGRATE_HASHED_STORAGE) return if user_dismissed?(GEO_MIGRATE_HASHED_STORAGE)
return if hashed_storage_disabled? return unless hashed_storage_enabled?
any_project_not_in_hashed_storage? any_project_not_in_hashed_storage?
end end
private private
def hashed_storage_disabled? def hashed_storage_enabled?
!::Gitlab::CurrentSettings.current_application_settings.hashed_storage_enabled ::Gitlab::CurrentSettings.current_application_settings.hashed_storage_enabled
end end
def any_project_not_in_hashed_storage? def any_project_not_in_hashed_storage?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment