A platform for community discussion. Free, open, simple.
DEV: Remove duplicated line of code (#22733)
Alan Guo Xiang Tan40bedea75a92
diff --git a/lib/post_destroyer.rb b/lib/post_destroyer.rbindex cb4b829e545..0311cfaea40 100644--- a/lib/post_destroyer.rb+++ b/lib/post_destroyer.rb@@ -305,7 +305,6 @@ class PostDestroyerdef make_previous_post_the_last_onelast_post =Post- .where("topic_id = ? and id <> ?", @post.topic_id, @post.id).select(:created_at, :user_id, :post_number).where("topic_id = ? and id <> ?", @post.topic_id, @post.id).where.not(user_id: nil)