From 5732e4288e935b10a68bb6b008573d3326d8ef7f Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 10 Sep 2020 14:32:11 +0800 Subject: [PATCH] DEV: Remove redundant variable. --- lib/topic_query.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/topic_query.rb b/lib/topic_query.rb index 7e0a7b8786b..4670ae6f9c7 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -951,10 +951,9 @@ class TopicQuery end def new_messages(params) - query = TopicQuery + TopicQuery .new_filter(messages_for_groups_or_user(params[:my_group_ids]), Time.at(SiteSetting.min_new_topics_time).to_datetime) .limit(params[:count]) - query end def unread_messages(params)