summaryrefslogtreecommitdiff
path: root/app/models/prometheus_metric.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-04 15:01:26 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-04 15:01:26 +0200
commitcf5f50544c3c379474e918fe5e59f3ca3ace15f1 (patch)
tree53535a7684b3934b98bde998056311936e689279 /app/models/prometheus_metric.rb
parent1f19647c0e0699011a90688d6a6b40169f0ab263 (diff)
downloadgitlab-ce-cf5f50544c3c379474e918fe5e59f3ca3ace15f1.tar.gz
Update code-style
Diffstat (limited to 'app/models/prometheus_metric.rb')
-rw-r--r--app/models/prometheus_metric.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/prometheus_metric.rb b/app/models/prometheus_metric.rb
index dbb0fd19b74..69d3a21c397 100644
--- a/app/models/prometheus_metric.rb
+++ b/app/models/prometheus_metric.rb
@@ -55,7 +55,7 @@ class PrometheusMetric < ActiveRecord::Base
end
def required_metrics
- (REQUIRED_METRICS[group.to_sym] || []).map(&:to_s)
+ REQUIRED_METRICS[group.to_sym].to_a.map(&:to_s)
end
def to_query_metric