summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-10-12 15:21:11 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-10-12 15:21:11 +0200
commit2e3bc85421ddfc814e81f75e3adb8a8c1d53093e (patch)
tree0189dcc014b65e9698d8621596fd6e0641f7b494
parent9eedd6f9c7baa5693a24c33c29909bfc7dac1b21 (diff)
downloadgitlab-ce-2e3bc85421ddfc814e81f75e3adb8a8c1d53093e.tar.gz
Do not return from proc-closure in pipeline transition
-rw-r--r--app/models/commit_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index aac5f7a5937..7b554be4f9a 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -86,7 +86,7 @@ class CommitStatus < ActiveRecord::Base
end
after_transition do |commit_status, transition|
- return if transition.loopback?
+ next if transition.loopback?
commit_status.run_after_commit do
pipeline.try do |pipeline|