chore(newline): insert final newline

This commit is contained in:
zhouzb 2021-06-01 16:11:28 +08:00
parent 9d4af87eb7
commit 72c4696584
5 changed files with 9 additions and 19 deletions

View File

@ -89,14 +89,9 @@ enable() ->
ok -> ok;
{error, already_exists} -> ok
end.
% case emqx:hook('client.enhanced_authenticate', fun emqx_authentication:enhanced_authenticate/2) of
% ok -> ok;
% {error, already_exists} -> ok
% end.
disable() ->
emqx:unhook('client.authenticate', fun emqx_authentication:authenticate/1),
% emqx:unhook('client.enhanced_authenticate', {}),
ok.
authenticate(#{chain_id := ChainID} = ClientInfo) ->

View File

@ -398,7 +398,7 @@ serialize_type(service_type) ->
"Service type".
get_missed_params(Actual, Expected) ->
Keys = lists:fold(fun(Key, Acc) ->
Keys = lists:foldl(fun(Key, Acc) ->
case maps:is_key(Key, Actual) of
true -> Acc;
false -> [Key | Acc]

View File

@ -32,4 +32,3 @@ start(_StartType, _StartArgs) ->
stop(_State) ->
ok.

View File

@ -287,7 +287,3 @@ to_binary(B) when is_binary(B) ->
B;
to_binary(L) when is_list(L) ->
iolist_to_binary(L).