summaryrefslogtreecommitdiff
path: root/app/controllers/ci
diff options
context:
space:
mode:
authorKatarzyna Kobierska <kkobierska@gmail.com>2016-08-25 14:57:57 +0200
committerKatarzyna Kobierska <kkobierska@gmail.com>2016-09-07 12:10:49 +0200
commitcc06eab237a6fe5501fcfdb2d1f1e57f711b56f5 (patch)
tree02880b599fe1f53a8e00269c36cd64fe63ac93b7 /app/controllers/ci
parent9e313c129418f847498e771abd6bea53884682b5 (diff)
downloadgitlab-ce-cc06eab237a6fe5501fcfdb2d1f1e57f711b56f5.tar.gz
Change class method name
Diffstat (limited to 'app/controllers/ci')
-rw-r--r--app/controllers/ci/lints_controller.rb4
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