summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-06-07 14:37:32 +0200
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-07 14:37:32 +0200
commit0edc1ef675b2a8eb0c075d0707104bf0751599ef (patch)
treeecfe0418e458bd2987883b70076bb6f7325df3ed /lib
parentd27db3eaede283f1061d4ad433e6d92680343e72 (diff)
downloadgitlab-ce-0edc1ef675b2a8eb0c075d0707104bf0751599ef.tar.gz
Use key? instead of has_key? methodfix_rubocop_warning_about_has_key
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