Commit 7b5e4cb7 authored by Ryan Cobb's avatar Ryan Cobb

Protect against nil metric identifier

parent 5579dc08
......@@ -75,6 +75,7 @@ module Gitlab
def find_metric(metrics, metric)
return unless metrics
return unless metric.identifier
metrics.find { |m| m[:id] == metric.identifier }
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