diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-14 18:08:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-14 18:08:14 +0300 |
commit | 87f286558de1f5790b0b1742f10548387b5d147a (patch) | |
tree | c483d5f3542094d2123c8116ffee22430d9ad9c9 /app/models/namespace | |
parent | 674e7e2c3d295704bdf504dd0caa2e5a2d9b5cd2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/namespace')
-rw-r--r-- | app/models/namespace/root_storage_size.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/namespace/root_storage_size.rb b/app/models/namespace/root_storage_size.rb index 56e615205c4..d61917e468e 100644 --- a/app/models/namespace/root_storage_size.rb +++ b/app/models/namespace/root_storage_size.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true class Namespace::RootStorageSize - ALERT_USAGE_THRESHOLD = 0.5 - def initialize(root_namespace) @root_namespace = root_namespace end @@ -27,12 +25,6 @@ class Namespace::RootStorageSize @limit ||= Gitlab::CurrentSettings.namespace_storage_size_limit.megabytes end - def show_alert? - return false if limit == 0 - - usage_ratio >= ALERT_USAGE_THRESHOLD - end - private attr_reader :root_namespace |