diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-07 15:02:39 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-07 15:02:39 +0000 |
commit | a5757c72d967acd82865f9f7cb288d5b61b0b35c (patch) | |
tree | 98b7e2f355d99afad171c9d2ba5aa9fc752ba0c4 | |
parent | 6ee216c4d96f0e5c9b2f4bfe21fa808b476f8365 (diff) | |
parent | 0edc1ef675b2a8eb0c075d0707104bf0751599ef (diff) | |
download | gitlab-ce-a5757c72d967acd82865f9f7cb288d5b61b0b35c.tar.gz |
Merge branch 'fix_rubocop_warning_about_has_key' into 'master'
Use key? instead of has_key?
See merge request !11971
-rw-r--r-- | lib/gitlab/health_checks/prometheus_text_format.rb | 2 |
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 |