提交 7cfaccd6 编写于 作者: G Grzegorz Bizon

Fix code style offenses in pipeline create services

上级 3420c0f7
......@@ -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
......
......@@ -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?
......
......@@ -481,5 +481,4 @@ describe Ci::CreatePipelineService do
end
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册