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
path: root/lib
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-06-07 15:37:32 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-07 15:37:32 +0300
commit0edc1ef675b2a8eb0c075d0707104bf0751599ef (patch)
treeecfe0418e458bd2987883b70076bb6f7325df3ed /lib
parentd27db3eaede283f1061d4ad433e6d92680343e72 (diff)
Use key? instead of has_key? method
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/health_checks/prometheus_text_format.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/health_checks/prometheus_text_format.rb b/lib/gitlab/health_checks/prometheus_text_format.rb
index 462c8e736a0..b3c759b4730 100644
--- a/lib/gitlab/health_checks/prometheus_text_format.rb
+++ b/lib/gitlab/health_checks/prometheus_text_format.rb
@@ -13,7 +13,7 @@ module Gitlab
metrics.flat_map do |metric|
metric_lines = []
- unless type_declaration_added.has_key?(metric.name)
+ unless type_declaration_added.key?(metric.name)
type_declaration_added[metric.name] = true
metric_lines << metric_type_declaration(metric)
end