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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-02 16:05:14 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-02 16:05:14 +0300
commit626cb8edc3f4421fe7e866c51fddc2715875ddda (patch)
tree9f2430c172dfdc64bf60829259c32b9a834c462c /app/services
parentfe0b2f81c7c9680a11288e0cdffc3e80dc1e8d58 (diff)
Fix invalid conditional in pipeline create service
Diffstat (limited to 'app/services')
-rw-r--r--app/services/ci/create_pipeline_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb
index 4dd74ebb1bb..5ff388c6614 100644
--- a/app/services/ci/create_pipeline_service.rb
+++ b/app/services/ci/create_pipeline_service.rb
@@ -42,7 +42,7 @@ module Ci
return pipeline
end
- if pipeline.has_stage_seeds?
+ unless pipeline.has_stage_seeds?
return error('No stages / jobs for this pipeline.')
end