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
include ::ApplicationWorker
include ::PipelineQueue
# rubocop:disable CodeReuse/ActiveRecord
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
.new(bridge.project, bridge.user)
.execute(bridge)
end
end
# rubocop:enable CodeReuse/ActiveRecord
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