From 93a64c4aa1e69de8f1c4f5ce212753252d07b0f1 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 31 Aug 2018 09:52:10 +0800 Subject: [PATCH] Prefer `destroy!` over `destroy` when not checking for return value. --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index abaffdd..62962c1 100644 --- a/plugin.rb +++ b/plugin.rb @@ -140,7 +140,7 @@ SQL post_number: post.post_number ) - notification.destroy if notification + notification.destroy! if notification DiscourseEvent.trigger(:unaccepted_solution, post) end