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 ->
|
undefined ->
|
||||||
{reply, ok, State};
|
{reply, ok, State};
|
||||||
_ ->
|
_ ->
|
||||||
emqx_gateway_sup:unload_gateway(Type),
|
_ = emqx_gateway_sup:unload_gateway(Type),
|
||||||
{reply, ok, State#state{reged = maps:remove(Type, Gateways)}}
|
{reply, ok, State#state{reged = maps:remove(Type, Gateways)}}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ lookup_gateway(GwType) ->
|
||||||
undefined
|
undefined
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec update_gateway(gateway_type())
|
-spec update_gateway(gateway())
|
||||||
-> ok
|
-> ok
|
||||||
| {error, any()}.
|
| {error, any()}.
|
||||||
update_gateway(NewGateway = #{type := GwType}) ->
|
update_gateway(NewGateway = #{type := GwType}) ->
|
||||||
|
|
Loading…
Reference in New Issue