diff --git a/app/models/notice.rb b/app/models/notice.rb index f3764ce..1abf5a4 100644 --- a/app/models/notice.rb +++ b/app/models/notice.rb @@ -91,7 +91,7 @@ class Notice end def decrease_counter_cache - problem.inc(:notices_count, -1) + problem.inc(:notices_count, -1) if err end def unresolve_problem -- libgit2 0.21.2