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