Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove useless assignment in `TopicView#filter_posts_paged`. (#14618)

Alan Guo Xiang Tanbaae4530123a
diff --git a/lib/topic_view.rb b/lib/topic_view.rb
index bcd61346753..ffb5ec08294 100644
--- a/lib/topic_view.rb
+++ b/lib/topic_view.rb
@@ -346,7 +346,7 @@ class TopicView
# Sometimes we don't care about the OP, for example when embedding comments
min = 1 if min == 0 && @exclude_first
- @posts = filter_posts_by_ids(
+ filter_posts_by_ids(
@filtered_posts.order(:sort_order)
.offset(min)
.limit(@limit)