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:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-06-07 18:02:39 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-06-07 18:02:39 +0300
commita5757c72d967acd82865f9f7cb288d5b61b0b35c (patch)
tree98b7e2f355d99afad171c9d2ba5aa9fc752ba0c4 /lib
parent6ee216c4d96f0e5c9b2f4bfe21fa808b476f8365 (diff)
parent0edc1ef675b2a8eb0c075d0707104bf0751599ef (diff)
Merge branch 'fix_rubocop_warning_about_has_key' into 'master'
Use key? instead of has_key? See merge request !11971
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