Commit cfa18dab authored by Katarzyna Kobierska's avatar Katarzyna Kobierska

Fix rubocop errors

parent cc06eab2
......@@ -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
......
......@@ -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'
......
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