fix(emqx_broker): Dialyzer warning

This commit is contained in:
Zaiming Shi 2020-11-04 17:23:05 +01:00
parent 0eb697fa6f
commit cfe52cbb8d
1 changed files with 2 additions and 1 deletions

View File

@ -465,7 +465,8 @@ handle_cast({subscribe, Topic}, State) ->
handle_cast({unsubscribed, Topic}, State) ->
case ets:member(?SUBSCRIBER, Topic) of
false ->
_ = emqx_router:do_delete_route(Topic);
_ = emqx_router:do_delete_route(Topic),
ok;
true -> ok
end,
{noreply, State};