Commit d0784fb3 authored by Matija Čupić's avatar Matija Čupić

Inline initialize_yaml_processor

parent 0a668b43
......@@ -477,7 +477,7 @@ module Ci
return @config_processor if defined?(@config_processor)
@config_processor ||= begin
initialize_yaml_processor
::Gitlab::Ci::YamlProcessor.new(ci_yaml_file, { project: project, sha: sha })
rescue Gitlab::Ci::YamlProcessor::ValidationError => e
self.yaml_errors = e.message
nil
......@@ -487,10 +487,6 @@ module Ci
end
end
def initialize_yaml_processor
::Gitlab::Ci::YamlProcessor.new(ci_yaml_file, { project: project, sha: sha })
end
def ci_yaml_file_path
if project.ci_config_path.blank?
'.gitlab-ci.yml'
......
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