Commit a5757c72 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'fix_rubocop_warning_about_has_key' into 'master'

Use key? instead of has_key?

See merge request !11971
parents 6ee216c4 0edc1ef6
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment