Commit 7cfaccd6 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix code style offenses in pipeline create services

parent 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
......
......@@ -481,5 +481,4 @@ describe Ci::CreatePipelineService do
end
end
end
end
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