mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Not initializing variable for looping if unused in loop
This commit is contained in:
@ -48,7 +48,7 @@ class Admin::EmailController < Admin::AdminController
|
||||
|
||||
def delivery_settings
|
||||
action_mailer_settings
|
||||
.reject { |k, v| k == :password }
|
||||
.reject { |k, _| k == :password }
|
||||
.map { |k, v| { name: k, value: v }}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user