chore(gw): fix dialyzer warnigns

This commit is contained in:
JianBo He 2021-08-16 17:40:04 +08:00
parent be4d2495f0
commit cac0ea4b19
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ handle_call({unreg, Type}, _From, State = #state{reged = Gateways}) ->
undefined ->
{reply, ok, State};
_ ->
emqx_gateway_sup:unload_gateway(Type),
_ = emqx_gateway_sup:unload_gateway(Type),
{reply, ok, State#state{reged = maps:remove(Type, Gateways)}}
end;

View File

@ -71,7 +71,7 @@ lookup_gateway(GwType) ->
undefined
end.
-spec update_gateway(gateway_type())
-spec update_gateway(gateway())
-> ok
| {error, any()}.
update_gateway(NewGateway = #{type := GwType}) ->