Prefer `destroy!` over `destroy` when not checking for return value.

This commit is contained in:
Guo Xiang Tan 2018-08-31 09:52:10 +08:00
parent 91e14226a5
commit 93a64c4aa1
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ SQL
post_number: post.post_number post_number: post.post_number
) )
notification.destroy if notification notification.destroy! if notification
DiscourseEvent.trigger(:unaccepted_solution, post) DiscourseEvent.trigger(:unaccepted_solution, post)
end end