Fix rubocop errors

This commit is contained in:
Katarzyna Kobierska 2016-08-25 15:45:23 +02:00
parent cc06eab237
commit cfa18dab86
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ module Ci
if @content.blank?
@status = false
@error = "Please provide content of .gitlab-ci.yml"
elsif Ci::GitlabCiYamlProcessor.errors(@content) != nil
elsif !Ci::GitlabCiYamlProcessor.errors(@content).nil?
@status = false
@error = Ci::GitlabCiYamlProcessor.errors(@content)
else

View file

@ -13,7 +13,7 @@ module API
jobs: []
}
if Ci::GitlabCiYamlProcessor.errors(@content) != nil
if !Ci::GitlabCiYamlProcessor.errors(@content).nil?
status 200
response[:errors].push(Ci::GitlabCiYamlProcessor.errors(@content))
response[:status] = 'invalid'