diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-08-25 14:57:57 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 12:10:49 +0200 |
commit | cc06eab237a6fe5501fcfdb2d1f1e57f711b56f5 (patch) | |
tree | 02880b599fe1f53a8e00269c36cd64fe63ac93b7 /app | |
parent | 9e313c129418f847498e771abd6bea53884682b5 (diff) | |
download | gitlab-ce-cc06eab237a6fe5501fcfdb2d1f1e57f711b56f5.tar.gz |
Change class method name
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/ci/lints_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/ci/lints_controller.rb b/app/controllers/ci/lints_controller.rb index 67028b66a66..e03543a9267 100644 --- a/app/controllers/ci/lints_controller.rb +++ b/app/controllers/ci/lints_controller.rb @@ -11,9 +11,9 @@ module Ci if @content.blank? @status = false @error = "Please provide content of .gitlab-ci.yml" - elsif Ci::GitlabCiYamlProcessor.validate(@content) != "valid" + elsif Ci::GitlabCiYamlProcessor.errors(@content) != nil @status = false - @error = Ci::GitlabCiYamlProcessor.validate(@content) + @error = Ci::GitlabCiYamlProcessor.errors(@content) else @config_processor = Ci::GitlabCiYamlProcessor.new(@content) @stages = @config_processor.stages |