stylet: run erlfmt on emqx_management

This commit is contained in:
Chris 2022-04-26 14:59:40 +02:00
parent 9063dbb1ee
commit db5ff06991
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ banned(post, #{body := Body}) ->
{400, 'BAD_REQUEST', list_to_binary(Reason)};
Ban ->
case emqx_banned:create(Ban) of
{ok, Banned} -> {200, format(Banned)};
{ok, Banned} ->
{200, format(Banned)};
{error, {already_exist, Old}} ->
OldBannedFormat = emqx_json:encode(format(Old)),
{400, 'ALREADY_EXISTS', OldBannedFormat}