A platform for community discussion. Free, open, simple.
DEV: Remove redundant line of code (#22734)
Alan Guo Xiang Tan1f2213414a94
diff --git a/lib/post_destroyer.rb b/lib/post_destroyer.rbindex 0311cfaea40..d8f67083e40 100644--- a/lib/post_destroyer.rb+++ b/lib/post_destroyer.rb@@ -310,7 +310,6 @@ class PostDestroyer.where.not(user_id: nil).where.not(post_type: Post.types[:whisper]).order("created_at desc")- .limit(1).firstif last_post.present?