Fix typo
All checks were successful
continuous-integration/drone/push Build is passing

The return value of `strip!` is `nil`
This commit is contained in:
Râu Cao 2024-09-11 16:26:48 +02:00
parent 3cf4348695
commit 4909dac5c2
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -25,7 +25,6 @@ class Admin::SettingsController < Admin::BaseController
end
changed_keys.each do |key|
Setting.send("#{key}=", clean_param(key))
end
end
@ -42,7 +41,7 @@ class Admin::SettingsController < Admin::BaseController
def clean_param(key)
if Setting.get_field(key)[:type] == :string
setting_params[key].strip!
setting_params[key].strip
else
setting_params[key]
end