summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Cobb <rcobb@gitlab.com>2019-07-09 15:47:46 -0600
committerRyan Cobb <rcobb@gitlab.com>2019-07-09 17:02:08 -0600
commita0c16db70d9bc663a6a463f4cecd81372b0758b5 (patch)
tree7136cfeba03fdac6cd10d317e95eda278bc35567 /lib
parentdf8a56e630a4f4df93fbc54de938f31542539d31 (diff)
downloadgitlab-ce-a0c16db70d9bc663a6a463f4cecd81372b0758b5.tar.gz
Remove unnecessary rubocop disable
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/database_importers/common_metrics/importer.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/database_importers/common_metrics/importer.rb b/lib/gitlab/database_importers/common_metrics/importer.rb
index 43be5a8ee59..6c61e05674e 100644
--- a/lib/gitlab/database_importers/common_metrics/importer.rb
+++ b/lib/gitlab/database_importers/common_metrics/importer.rb
@@ -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)]