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
else
build.enqueue
end
true
else
build.skip
......
......@@ -11,7 +11,7 @@ module Gitlab
runner_system_failure: 'runner system failure',
missing_dependency_failure: 'missing dependency failure',
runner_unsupported: 'unsupported runner',
schedule_expired: 'schedule expired',
schedule_expired: 'schedule expired'
}.freeze
private_constant :REASONS
......
......@@ -718,7 +718,10 @@ describe Ci::ProcessPipelineService, '#execute' do
end
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
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