Commit 54263dc1 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Fix coding style offence

parent b5a591d8
...@@ -11,6 +11,7 @@ module Ci ...@@ -11,6 +11,7 @@ module Ci
else else
build.enqueue build.enqueue
end end
true true
else else
build.skip build.skip
......
...@@ -11,7 +11,7 @@ module Gitlab ...@@ -11,7 +11,7 @@ module Gitlab
runner_system_failure: 'runner system failure', runner_system_failure: 'runner system failure',
missing_dependency_failure: 'missing dependency failure', missing_dependency_failure: 'missing dependency failure',
runner_unsupported: 'unsupported runner', runner_unsupported: 'unsupported runner',
schedule_expired: 'schedule expired', schedule_expired: 'schedule expired'
}.freeze }.freeze
private_constant :REASONS private_constant :REASONS
......
...@@ -718,7 +718,10 @@ describe Ci::ProcessPipelineService, '#execute' do ...@@ -718,7 +718,10 @@ describe Ci::ProcessPipelineService, '#execute' do
end end
def builds_names_and_statuses def builds_names_and_statuses
builds.inject({}) { |h, b| h[b.name.to_sym] = b.status; h } builds.each_with_object({}) do |h, b|
h[b.name.to_sym] = b.status
h
end
end end
def all_builds_names def all_builds_names
......
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