1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-04 10:19:31 +02:00

Fix Elvis report: Remove spaces in weird places

https://github.com/inaka/elvis_core/blob/main/doc_rules/elvis_style/no_space.md
This commit is contained in:
Badlop 2024-08-26 11:28:54 +02:00
parent 74b80bfe08
commit 0304428d95
9 changed files with 11 additions and 12 deletions

View file

@ -542,7 +542,7 @@ log(Call, Args, IP) ->
?INFO_MSG("API call ~ts ~p (~p)", [Call, hide_sensitive_args(Args), IP]).
hide_sensitive_args(Args=[_H|_T]) ->
lists:map( fun({<<"password">>, Password}) -> {<<"password">>, ejabberd_config:may_hide_data(Password)};
lists:map(fun({<<"password">>, Password}) -> {<<"password">>, ejabberd_config:may_hide_data(Password)};
({<<"newpass">>,NewPassword}) -> {<<"newpass">>, ejabberd_config:may_hide_data(NewPassword)};
(E) -> E end,
Args);