diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-11-06 20:23:45 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-11-06 20:23:45 +0300 |
commit | f48261a409f4f4d73118621330796ed92623f08e (patch) | |
tree | 9b64b7dd7b8064f9ffd3c5f7040818bc08273267 /lib/gitlab/ci | |
parent | 4b2b154c4e5ddfc397bc59f3a38b8f09d44903e5 (diff) |
Refactor Normalizer specs
Diffstat (limited to 'lib/gitlab/ci')
-rw-r--r-- | lib/gitlab/ci/config/normalizer.rb | 2 |
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 |