summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-11-06 18:23:45 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-11-06 18:23:45 +0100
commitf48261a409f4f4d73118621330796ed92623f08e (patch)
tree9b64b7dd7b8064f9ffd3c5f7040818bc08273267 /lib
parent4b2b154c4e5ddfc397bc59f3a38b8f09d44903e5 (diff)
downloadgitlab-ce-f48261a409f4f4d73118621330796ed92623f08e.tar.gz
Refactor Normalizer specs
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/config/normalizer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/config/normalizer.rb b/lib/gitlab/ci/config/normalizer.rb
index 7bd0e08e817..bfe976c04bf 100644
--- a/lib/gitlab/ci/config/normalizer.rb
+++ b/lib/gitlab/ci/config/normalizer.rb
@@ -27,7 +27,7 @@ module Gitlab
def parallelize_jobs(jobs_config, parallelized_jobs)
jobs_config.each_with_object({}) do |(job_name, config), hash|
- if parallelized_jobs.keys.include?(job_name)
+ if parallelized_jobs.key?(job_name)
parallelized_jobs[job_name].each { |name, index| hash[name.to_sym] = config.merge(name: name, instance: index) }
else
hash[job_name] = config