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:
Diffstat (limited to 'lib/expand_variables.rb')
-rw-r--r--lib/expand_variables.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/expand_variables.rb b/lib/expand_variables.rb
index d172df4920f..06160b55f5c 100644
--- a/lib/expand_variables.rb
+++ b/lib/expand_variables.rb
@@ -50,9 +50,8 @@ module ExpandVariables
# Convert hash array to variables
if variables.is_a?(Array)
- variables = variables.reduce({}) do |hash, variable|
+ variables = variables.each_with_object({}) do |variable, hash|
hash[variable[:key]] = variable[:value]
- hash
end
end