Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-03 15:11:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-03 15:11:38 +0300
commit91035102b4e313787a45217ff12bb88f7f48bf20 (patch)
tree0b4c1147165bee39e199acae3d606683de97e087 /lib/gitlab/utils
parentdda49284fcd29d631c2b7642a6430fdfa5793f48 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/utils')
-rw-r--r--lib/gitlab/utils/usage_data.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/utils/usage_data.rb b/lib/gitlab/utils/usage_data.rb
index 4d1b234ae54..19bdeefed7e 100644
--- a/lib/gitlab/utils/usage_data.rb
+++ b/lib/gitlab/utils/usage_data.rb
@@ -196,7 +196,7 @@ module Gitlab
def alt_usage_data(value = nil, fallback: FALLBACK, &block)
with_duration do
- if block_given?
+ if block
yield
else
value
@@ -209,7 +209,7 @@ module Gitlab
def redis_usage_data(counter = nil, &block)
with_duration do
- if block_given?
+ if block
redis_usage_counter(&block)
elsif counter.present?
redis_usage_data_totals(counter)