Commit cfa18dab authored by Katarzyna Kobierska's avatar Katarzyna Kobierska

Fix rubocop errors

parent cc06eab2
...@@ -11,7 +11,7 @@ module Ci ...@@ -11,7 +11,7 @@ module Ci
if @content.blank? if @content.blank?
@status = false @status = false
@error = "Please provide content of .gitlab-ci.yml" @error = "Please provide content of .gitlab-ci.yml"
elsif Ci::GitlabCiYamlProcessor.errors(@content) != nil elsif !Ci::GitlabCiYamlProcessor.errors(@content).nil?
@status = false @status = false
@error = Ci::GitlabCiYamlProcessor.errors(@content) @error = Ci::GitlabCiYamlProcessor.errors(@content)
else else
......
...@@ -13,7 +13,7 @@ module API ...@@ -13,7 +13,7 @@ module API
jobs: [] jobs: []
} }
if Ci::GitlabCiYamlProcessor.errors(@content) != nil if !Ci::GitlabCiYamlProcessor.errors(@content).nil?
status 200 status 200
response[:errors].push(Ci::GitlabCiYamlProcessor.errors(@content)) response[:errors].push(Ci::GitlabCiYamlProcessor.errors(@content))
response[:status] = 'invalid' 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