mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Merge branch 'fix/clear_config_warning' into 'develop'
Fix warning for misuse of clear_config/2 See merge request pleroma/pleroma!3446
This commit is contained in:
commit
5b9e13fc0d
1 changed files with 1 additions and 2 deletions
|
@ -42,8 +42,7 @@ defmodule Pleroma.Tests.Helpers do
|
||||||
# Displaying a warning to prevent unintentional clearing of all but one keys in section
|
# Displaying a warning to prevent unintentional clearing of all but one keys in section
|
||||||
if Keyword.keyword?(temp_setting) and length(temp_setting) == 1 do
|
if Keyword.keyword?(temp_setting) and length(temp_setting) == 1 do
|
||||||
Logger.warn(
|
Logger.warn(
|
||||||
"Please change to `clear_config([section]); clear_config([section, key], value)`: " <>
|
"Please change `clear_config([section], key: value)` to `clear_config([section, key], value)`"
|
||||||
"#{inspect(config_path)}, #{inspect(temp_setting)}"
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue