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>2018-02-27 14:36:30 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-02-27 14:36:30 +0300
commit886988c9e1ab6020da9636b935522fac55a19c1e (patch)
tree0d0b69a1e41d68f918cd49200e6d4fb1d831771c /lib/gitlab/ci/pipeline/expression/lexeme/variable.rb
parent3938d1c3a0de449fa9291783257e674acd12876b (diff)
Do not use keyword args to pass expression variables
Diffstat (limited to 'lib/gitlab/ci/pipeline/expression/lexeme/variable.rb')
-rw-r--r--lib/gitlab/ci/pipeline/expression/lexeme/variable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/lexeme/variable.rb b/lib/gitlab/ci/pipeline/expression/lexeme/variable.rb
index ad002447b88..b781c15fd67 100644
--- a/lib/gitlab/ci/pipeline/expression/lexeme/variable.rb
+++ b/lib/gitlab/ci/pipeline/expression/lexeme/variable.rb
@@ -10,8 +10,8 @@ module Gitlab
@name = name
end
- def evaluate(**variables)
- variables[@name.to_sym]
+ def evaluate(variables = {})
+ HashWithIndifferentAccess.new(variables).fetch(@name, nil)
end
def self.build(string)