Commit a0c16db7 authored by Ryan Cobb's avatar Ryan Cobb

Remove unnecessary rubocop disable

parent df8a56e6
......@@ -58,14 +58,12 @@ module Gitlab
yield(metric_details['id'], attributes)
end
# rubocop: disable CodeReuse/ActiveRecord
def find_or_build_metric!(id)
raise MissingQueryId unless id
CommonMetrics::PrometheusMetric.common.find_by(identifier: id) ||
CommonMetrics::PrometheusMetric.new(common: true, identifier: id)
end
# rubocop: enable CodeReuse/ActiveRecord
def find_group_title_key(title)
CommonMetrics::PrometheusMetricEnums.groups[find_group_title(title)]
......
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