Explorar el Código

fix(emqx_retainer): fix dialyzer warnings

ayodele.akingbule hace 5 años
padre
commit
9b6b762f1c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      apps/emqx_retainer/src/emqx_retainer.erl

+ 2 - 1
apps/emqx_retainer/src/emqx_retainer.erl

@@ -142,7 +142,8 @@ init([Env]) ->
     case mnesia:table_info(?TAB, storage_type) of
         Copies -> ok;
         _Other ->
-            {atomic, ok} = mnesia:change_table_copy_type(?TAB, node(), Copies)
+            {atomic, ok} = mnesia:change_table_copy_type(?TAB, node(), Copies),
+            ok
     end,
     StatsFun = emqx_stats:statsfun('retained.count', 'retained.max'),
     {ok, StatsTimer} = timer:send_interval(timer:seconds(1), stats),