fix: io:format(Profile) error

This commit is contained in:
AvantLiu 2022-01-07 10:56:49 +08:00
parent 00b6d6d098
commit ed68f25b87
2 changed files with 1 additions and 3 deletions

View File

@ -33,9 +33,8 @@
%%
-channel_type(#{
cType => ?TYPE,
type => ?BRIDGE_CHL,
type => ?PROTOCOL_CHL,
title => #{
zh => <<"MQTT资源通道"/utf8>>
},

View File

@ -99,7 +99,6 @@ inject(Profile) ->
%% list the profile/lib dir to get all apps
list_apps(LibDir) ->
Apps = filelib:wildcard("*", LibDir),
io:format(standard_error, "~p", [Profile]),
lists:foldl(fun(App, Acc) -> [App || is_app(LibDir, App)] ++ Acc end, [], Apps).
is_app(_LibDir, "." ++ _) -> false; %% ignore hidden dir