mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Not initializing variable for looping if unused in loop
This commit is contained in:
@ -18,7 +18,7 @@ class AdminUserIndexQuery
|
||||
end
|
||||
|
||||
def filter_by_trust
|
||||
levels = trust_levels.map { |key, value| key.to_s }
|
||||
levels = trust_levels.map { |key, _| key.to_s }
|
||||
if levels.include?(params[:query])
|
||||
@query.where('trust_level = ?', trust_levels[params[:query].to_sym])
|
||||
end
|
||||
|
Reference in New Issue
Block a user