Commit 1a8777c8 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix coding style offenses in pipeline chain classes

parent da15b388
......@@ -28,7 +28,6 @@ module Ci
project: project,
current_user: current_user)
sequence = Gitlab::Ci::Pipeline::Chain::Sequence
.new(pipeline, command, SEQUENCE)
......
......@@ -9,9 +9,7 @@ module Gitlab
::Ci::Pipeline.transaction do
pipeline.save!
if @command.seeds_block
@command.seeds_block.call(pipeline)
end
@command.seeds_block&.call(pipeline)
::Ci::CreatePipelineStagesService
.new(project, current_user)
......
......@@ -13,7 +13,7 @@ module Gitlab
end
def build!
@sequence.each do |step|
@sequence.each do |step|
step.perform!
break if step.break?
......
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