Commit eb6b9e44 authored by syasonik's avatar syasonik

Reduce cognitive complexity of AlertsInserter

parent 4fde19a2
......@@ -11,10 +11,9 @@ module EE
alerts = metrics_with_alerts
for_metrics do |metric|
next unless metric_id = metric[:metric_id]
next unless alerts.include?(metric_id)
next unless alerts.include?(metric[:metric_id])
metric[:alert_path] = alert_path(metric_id, project, environment)
metric[:alert_path] = alert_path(metric[:metric_id], project, environment)
end
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