From 1b3165d217160d7f1e73986e52785ee6240ec0b1 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 29 Mar 2019 12:15:39 +0800 Subject: [PATCH] Make rubocop happy. --- app/models/search_log.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/search_log.rb b/app/models/search_log.rb index 0f67fcd8484..5d2a7d716f4 100644 --- a/app/models/search_log.rb +++ b/app/models/search_log.rb @@ -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?