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

Assignment is already done in `TopicView#filter_posts_by_ids`
This commit is contained in:
Alan Guo Xiang Tan 2021-10-15 15:49:22 +08:00 committed by GitHub
parent 6ad76520b8
commit baae453012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)