Commit 18aa2fb6 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Remove Rubocop override in cross-pipeline creation worker

parent bd8dc9b5
...@@ -5,14 +5,12 @@ module Ci ...@@ -5,14 +5,12 @@ module Ci
include ::ApplicationWorker include ::ApplicationWorker
include ::PipelineQueue include ::PipelineQueue
# rubocop:disable CodeReuse/ActiveRecord
def perform(bridge_id) def perform(bridge_id)
::Ci::Bridge.find_by(id: bridge_id).try do |bridge| ::Ci::Bridge.find_by_id(bridge_id).try do |bridge|
::Ci::CreateCrossProjectPipelineService ::Ci::CreateCrossProjectPipelineService
.new(bridge.project, bridge.user) .new(bridge.project, bridge.user)
.execute(bridge) .execute(bridge)
end end
end end
# rubocop:enable CodeReuse/ActiveRecord
end end
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