Commit 0edc1ef6 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Use key? instead of has_key? method

parent d27db3ea
...@@ -13,7 +13,7 @@ module Gitlab ...@@ -13,7 +13,7 @@ module Gitlab
metrics.flat_map do |metric| metrics.flat_map do |metric|
metric_lines = [] metric_lines = []
unless type_declaration_added.has_key?(metric.name) unless type_declaration_added.key?(metric.name)
type_declaration_added[metric.name] = true type_declaration_added[metric.name] = true
metric_lines << metric_type_declaration(metric) metric_lines << metric_type_declaration(metric)
end 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