Skip to content

Commit

Permalink
fix: io:format(Profile) error
Browse files Browse the repository at this point in the history
  • Loading branch information
AvantLiu committed Jan 7, 2022
1 parent 00b6d6d commit ed68f25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions apps/dgiot_mqtt/src/dgiot_mqttc_channel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@

%% 注册通道类型
-channel_type(#{

cType => ?TYPE,
type => ?BRIDGE_CHL,
type => ?PROTOCOL_CHL,
title => #{
zh => <<"MQTT资源通道"/utf8>>
},
Expand Down
1 change: 0 additions & 1 deletion scripts/inject-deps.escript
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed68f25

Please sign in to comment.