chore(gw): fix dialyzer warnigns
This commit is contained in:
parent
be4d2495f0
commit
cac0ea4b19
|
@ -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;
|
||||
|
||||
|
|
|
@ -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}) ->
|
||||
|
|
Loading…
Reference in New Issue