Make rubocop happy.
This commit is contained in:
parent
4fa8fe575b
commit
1b3165d217
|
@ -148,7 +148,6 @@ class SearchLog < ActiveRecord::Base
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def self.clean_up
|
def self.clean_up
|
||||||
search_id = SearchLog.order(:id).offset(SiteSetting.search_query_log_max_size).limit(1).pluck(:id)
|
search_id = SearchLog.order(:id).offset(SiteSetting.search_query_log_max_size).limit(1).pluck(:id)
|
||||||
if search_id.present?
|
if search_id.present?
|
||||||
|
|
Loading…
Reference in New Issue