Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/build_success_worker.rb')
-rw-r--r--app/workers/build_success_worker.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/workers/build_success_worker.rb b/app/workers/build_success_worker.rb
index 1623d8f02b9..f3530317090 100644
--- a/app/workers/build_success_worker.rb
+++ b/app/workers/build_success_worker.rb
@@ -22,8 +22,6 @@ class BuildSuccessWorker
# Therefore we no longer need to create a deployment, after a build succeeded.
# We're leaving this code for the transition period, but we can remove this code in 11.6.
def create_deployment(build)
- return if build.has_deployment?
-
build.create_deployment.try do |deployment|
deployment.succeed
end