summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-08-06 00:47:56 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-08-06 00:55:34 +0200
commit3890f722d2bdd8964bac776f92772cc447d2b44c (patch)
treecb107744ee0ccc2a8c620fd76def22ec1f0d47f0 /app/models
parent47f6dd69eb7db707f2e6631173adfc4878127141 (diff)
downloadgitlab-ci-3890f722d2bdd8964bac776f92772cc447d2b44c.tar.gz
Fix broken yaml error saving
Diffstat (limited to 'app/models')
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index c7e2d8b..ec65d19 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -250,7 +250,7 @@ class Commit < ActiveRecord::Base
private
def save_yaml_error(error)
- return unless self.yaml_errors?
+ return if self.yaml_errors?
self.yaml_errors = error
save
end