Fix coding style offence

This commit is contained in:
Shinya Maeda 2018-09-28 14:41:39 +09:00 committed by Alessio Caiazza
parent b5a591d8c2
commit 54263dc1d9
4 changed files with 15 additions and 11 deletions

View File

@ -11,6 +11,7 @@ module Ci
else
build.enqueue
end
true
else
build.skip

View File

@ -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

View File

@ -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