Skip to content
Snippets Groups Projects
Commit cfa18dab authored by Katarzyna Kobierska's avatar Katarzyna Kobierska
Browse files

Fix rubocop errors

parent cc06eab2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment