diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-11-05 17:53:37 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-11-05 17:53:37 +0300 |
commit | 4b2b154c4e5ddfc397bc59f3a38b8f09d44903e5 (patch) | |
tree | 2fc6411dc1d25d483fbdad4d7b820a678bce7e8e /lib/gitlab/ci/yaml_processor.rb | |
parent | 5fd8933d97b694fb8ae6a57acaae8fb4e7922e73 (diff) |
Refactor Gitlab::Ci::Config::Normalizer
Use Hash#each_with_object to manipulate job hashes.
Diffstat (limited to 'lib/gitlab/ci/yaml_processor.rb')
-rw-r--r-- | lib/gitlab/ci/yaml_processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/yaml_processor.rb b/lib/gitlab/ci/yaml_processor.rb index f65a4e198cc..63b55c57913 100644 --- a/lib/gitlab/ci/yaml_processor.rb +++ b/lib/gitlab/ci/yaml_processor.rb @@ -104,7 +104,7 @@ module Gitlab ## # Jobs # - @jobs = Ci::Config::Normalizer.new(@ci_config.jobs).normalize_jobs + @jobs = Ci::Config::Normalizer.normalize_jobs(@ci_config.jobs) @jobs.each do |name, job| # logical validation for job |