Commit 9fce7022 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Use right condition for params[:variables]

parent da471bad
......@@ -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 }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment