diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-02 16:05:14 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-02 16:05:14 +0300 |
commit | 626cb8edc3f4421fe7e866c51fddc2715875ddda (patch) | |
tree | 9f2430c172dfdc64bf60829259c32b9a834c462c /app/services | |
parent | fe0b2f81c7c9680a11288e0cdffc3e80dc1e8d58 (diff) |
Fix invalid conditional in pipeline create service
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/ci/create_pipeline_service.rb | 2 |
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 |