Make rubocop happy.

This commit is contained in:
Guo Xiang Tan 2019-03-29 12:15:39 +08:00
parent 4fa8fe575b
commit 1b3165d217
1 changed files with 0 additions and 1 deletions

View File

@ -148,7 +148,6 @@ class SearchLog < ActiveRecord::Base
.limit(limit)
end
def self.clean_up
search_id = SearchLog.order(:id).offset(SiteSetting.search_query_log_max_size).limit(1).pluck(:id)
if search_id.present?