chore(newline): insert final newline
This commit is contained in:
parent
9d4af87eb7
commit
72c4696584
|
@ -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) ->
|
||||
|
@ -522,4 +517,4 @@ trans(Fun, Args) ->
|
|||
case mnesia:transaction(Fun, Args) of
|
||||
{atomic, Res} -> Res;
|
||||
{aborted, Reason} -> {error, Reason}
|
||||
end.
|
||||
end.
|
||||
|
|
|
@ -398,10 +398,10 @@ serialize_type(service_type) ->
|
|||
"Service type".
|
||||
|
||||
get_missed_params(Actual, Expected) ->
|
||||
Keys = lists:fold(fun(Key, Acc) ->
|
||||
case maps:is_key(Key, Actual) of
|
||||
true -> Acc;
|
||||
false -> [Key | Acc]
|
||||
end
|
||||
end, [], Expected),
|
||||
lists:reverse(Keys).
|
||||
Keys = lists:foldl(fun(Key, Acc) ->
|
||||
case maps:is_key(Key, Actual) of
|
||||
true -> Acc;
|
||||
false -> [Key | Acc]
|
||||
end
|
||||
end, [], Expected),
|
||||
lists:reverse(Keys).
|
||||
|
|
|
@ -32,4 +32,3 @@ start(_StartType, _StartArgs) ->
|
|||
|
||||
stop(_State) ->
|
||||
ok.
|
||||
|
||||
|
|
|
@ -287,7 +287,3 @@ to_binary(B) when is_binary(B) ->
|
|||
B;
|
||||
to_binary(L) when is_list(L) ->
|
||||
iolist_to_binary(L).
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -26,4 +26,4 @@ start_link() ->
|
|||
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
|
||||
|
||||
init([]) ->
|
||||
{ok, {{one_for_one, 10, 10}, []}}.
|
||||
{ok, {{one_for_one, 10, 10}, []}}.
|
||||
|
|
Loading…
Reference in New Issue