Commit 98ebab2b authored by Rajendra Kadam's avatar Rajendra Kadam

Fix cop offenses in controllers

parent 30358c95
......@@ -7,7 +7,10 @@ module EE
prepended do
before_action do
push_licensed_feature(:escalation_policies, project)
push_licensed_feature(:incident_timeline_events) if project.licensed_feature_available?(:incident_timeline_events)
if project.licensed_feature_available?(:incident_timeline_events)
push_licensed_feature(:incident_timeline_events)
end
end
end
end
......
......@@ -17,7 +17,10 @@ module EE
before_action only: :show do
push_licensed_feature(:escalation_policies, project)
push_licensed_feature(:incident_timeline_events) if project.licensed_feature_available?(:incident_timeline_events)
if project.licensed_feature_available?(:incident_timeline_events)
push_licensed_feature(:incident_timeline_events)
end
end
before_action :redirect_if_test_case, only: [:show]
......
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