diff options
author | Ryan Cobb <rcobb@gitlab.com> | 2019-07-09 15:47:46 -0600 |
---|---|---|
committer | Ryan Cobb <rcobb@gitlab.com> | 2019-07-09 17:02:08 -0600 |
commit | a0c16db70d9bc663a6a463f4cecd81372b0758b5 (patch) | |
tree | 7136cfeba03fdac6cd10d317e95eda278bc35567 | |
parent | df8a56e630a4f4df93fbc54de938f31542539d31 (diff) | |
download | gitlab-ce-a0c16db70d9bc663a6a463f4cecd81372b0758b5.tar.gz |
Remove unnecessary rubocop disable
-rw-r--r-- | lib/gitlab/database_importers/common_metrics/importer.rb | 2 |
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)] |