diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/ci/lints_controller.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/ci/lints_controller.rb b/app/controllers/ci/lints_controller.rb index 62f6b23faba..e06d12cfce1 100644 --- a/app/controllers/ci/lints_controller.rb +++ b/app/controllers/ci/lints_controller.rb @@ -8,14 +8,12 @@ module Ci def create @content = params[:content] @error = Ci::GitlabCiYamlProcessor.validation_message(@content) + @status = @error.blank? - unless @error.blank? - @status = @error.blank? - else + if @error.blank? @config_processor = Ci::GitlabCiYamlProcessor.new(@content) @stages = @config_processor.stages @builds = @config_processor.builds - @status = true end rescue @error = 'Undefined error' |