Browse Source

fix(emqx_broker): Dialyzer warning

Zaiming Shi 5 years ago
parent
commit
cfe52cbb8d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/emqx_broker.erl

+ 2 - 1
src/emqx_broker.erl

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