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; ok -> ok;
{error, already_exists} -> ok {error, already_exists} -> ok
end. end.
% case emqx:hook('client.enhanced_authenticate', fun emqx_authentication:enhanced_authenticate/2) of
% ok -> ok;
% {error, already_exists} -> ok
% end.
disable() -> disable() ->
emqx:unhook('client.authenticate', fun emqx_authentication:authenticate/1), emqx:unhook('client.authenticate', fun emqx_authentication:authenticate/1),
% emqx:unhook('client.enhanced_authenticate', {}),
ok. ok.
authenticate(#{chain_id := ChainID} = ClientInfo) -> authenticate(#{chain_id := ChainID} = ClientInfo) ->
@ -522,4 +517,4 @@ trans(Fun, Args) ->
case mnesia:transaction(Fun, Args) of case mnesia:transaction(Fun, Args) of
{atomic, Res} -> Res; {atomic, Res} -> Res;
{aborted, Reason} -> {error, Reason} {aborted, Reason} -> {error, Reason}
end. end.

View File

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

View File

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

View File

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

View File

@ -26,4 +26,4 @@ start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []). supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) -> init([]) ->
{ok, {{one_for_one, 10, 10}, []}}. {ok, {{one_for_one, 10, 10}, []}}.