Merge branch 'fix_rubocop_warning_about_has_key' into 'master'
Use key? instead of has_key? See merge request !11971
This commit is contained in:
commit
a5757c72d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue