summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-26 13:02:57 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-26 13:02:57 +0200
commit1a8777c8d775b951384fbe4b8cf050b26b247d00 (patch)
tree3650d1ee92143020ca1af627cdef96e736e24d81 /lib
parentda15b38850d8d345a17862754285c34a2fbf08b6 (diff)
downloadgitlab-ce-1a8777c8d775b951384fbe4b8cf050b26b247d00.tar.gz
Fix coding style offenses in pipeline chain classes
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/pipeline/chain/create.rb4
-rw-r--r--lib/gitlab/ci/pipeline/chain/sequence.rb2
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/create.rb b/lib/gitlab/ci/pipeline/chain/create.rb
index 8bd658b3069..d5e17a123df 100644
--- a/lib/gitlab/ci/pipeline/chain/create.rb
+++ b/lib/gitlab/ci/pipeline/chain/create.rb
@@ -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)
diff --git a/lib/gitlab/ci/pipeline/chain/sequence.rb b/lib/gitlab/ci/pipeline/chain/sequence.rb
index e8d1ab36883..c80d583939c 100644
--- a/lib/gitlab/ci/pipeline/chain/sequence.rb
+++ b/lib/gitlab/ci/pipeline/chain/sequence.rb
@@ -13,7 +13,7 @@ module Gitlab
end
def build!
- @sequence.each do |step|
+ @sequence.each do |step|
step.perform!
break if step.break?