diff --git a/src/ejabberd_web_admin.erl b/src/ejabberd_web_admin.erl index dba415792..5264d1d1e 100644 --- a/src/ejabberd_web_admin.erl +++ b/src/ejabberd_web_admin.erl @@ -1684,9 +1684,7 @@ make_command2(Name, Request, BaseArguments, Options) -> ResultLinks = proplists:get_value(result_links, Options, []), TO = proplists:get_value(table_options, Options, {999999, []}), Style = proplists:get_value(style, Options, normal), - #request{us = {RUser, RServer}, - ip = RIp} = - Request, + #request{us = {RUser, RServer}, ip = RIp} = Request, CallerInfo = #{usr => {RUser, RServer, <<"">>}, ip => RIp, diff --git a/test/commands_tests.erl b/test/commands_tests.erl index 9cc23dee5..7e77136b9 100644 --- a/test/commands_tests.erl +++ b/test/commands_tests.erl @@ -141,7 +141,9 @@ http_list_tuple(Config) -> ?match(LTB, query(Config, "command_test_list_tuple", #{arg_list => LTB})). http_list_tuple_map(Config) -> - LTA = #{<<"one">> => <<"uno">>, <<"dos">> => <<"two">>, <<"three">> => <<"tres">>}, + LTA = #{<<"one">> => <<"uno">>, + <<"dos">> => <<"two">>, + <<"three">> => <<"tres">>}, LTB = lists:sort([#{<<"element1">> => <<"one">>, <<"element2">> => <<"uno">>}, #{<<"element1">> => <<"dos">>, <<"element2">> => <<"two">>}, #{<<"element1">> => <<"three">>, <<"element2">> => <<"tres">>}]),