Commit 16b6ee52 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Use block version of `Hash#fetch` to avoid unnecessary method call

parent c2eb975c
...@@ -27,7 +27,7 @@ module EE ...@@ -27,7 +27,7 @@ module EE
end end
def process_external_files(config, project, opts) def process_external_files(config, project, opts)
sha = opts.fetch(:sha, project.repository.root_ref_sha) sha = opts.fetch(:sha) { project.repository.root_ref_sha }
::Gitlab::Ci::External::Processor.new(config, project, sha).perform ::Gitlab::Ci::External::Processor.new(config, project, sha).perform
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment