summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/commit.rb')
-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