summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-25 22:45:08 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-25 22:45:08 +0900
commit9fce7022ecb6d9c4c1387888be78c8bc8b5e347e (patch)
treeeb725d9e6c8d311c0fdc10623f1c6dd6364eb3a1
parentda471badbdb3ab51b8c3a120be2cdb5779f9727d (diff)
downloadgitlab-ce-feature/sm/35282-ci_pipeline_variables.tar.gz
Use right condition for params[:variables]feature/sm/35282-ci_pipeline_variables
-rw-r--r--app/services/ci/pipeline_trigger_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/pipeline_trigger_service.rb b/app/services/ci/pipeline_trigger_service.rb
index fe04c47359b..6b21b479866 100644
--- a/app/services/ci/pipeline_trigger_service.rb
+++ b/app/services/ci/pipeline_trigger_service.rb
@@ -32,7 +32,7 @@ module Ci
end
def create_pipeline_variables!(pipeline)
- return if params[:variables].is_a?(Hash)
+ return unless params[:variables].is_a?(Hash)
variables = params[:variables].map do |key, value|
{ key: key, value: value }