BigW Consortium Gitlab

Commit 9e60d57d by Lin Jen-Shin

Move the condition to persisted_environment_variables

parent 0e5ee119
...@@ -201,10 +201,7 @@ module Ci ...@@ -201,10 +201,7 @@ module Ci
# All variables, including those dependent on other variables # All variables, including those dependent on other variables
def variables def variables
variables = simple_variables simple_variables.concat(persisted_environment_variables)
variables.concat(persisted_environment_variables) if
persisted_environment
variables
end end
def merge_request def merge_request
...@@ -499,6 +496,8 @@ module Ci ...@@ -499,6 +496,8 @@ module Ci
end end
def persisted_environment_variables def persisted_environment_variables
return [] unless persisted_environment
variables = persisted_environment.predefined_variables variables = persisted_environment.predefined_variables
if environment_url if environment_url
......
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