Fix code style offenses in pipeline create services

This commit is contained in:
Grzegorz Bizon 2017-09-26 09:38:16 +02:00
parent 3420c0f7dc
commit 7cfaccd6ed
3 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@ module Ci
attr_reader :pipeline
SEQUENCE = [Gitlab::Ci::Pipeline::Chain::Validate,
Gitlab::Ci::Pipeline::Chain::Skip]
Gitlab::Ci::Pipeline::Chain::Skip].freeze
def execute(source, ignore_skip_ci: false, save_on_errors: true, trigger_request: nil, schedule: nil)
@pipeline = Ci::Pipeline.new(
@ -91,7 +91,6 @@ module Ci
.created_or_pending
end
def before_sha
params[:checkout_sha] || params[:before] || Gitlab::Git::BLANK_SHA
end

View File

@ -10,7 +10,7 @@ module Gitlab
end
def break?
@pipeline.errors.any? || @pipeline.persisted?
@pipeline.errors.any? || @pipeline.persisted?
end
def allowed_to_trigger_pipeline?

View File

@ -481,5 +481,4 @@ describe Ci::CreatePipelineService do
end
end
end
end