فهرست منبع

fix(emqx_retainer): fix dialyzer warnings

ayodele.akingbule 5 سال پیش
والد
کامیت
9b6b762f1c
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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
     case mnesia:table_info(?TAB, storage_type) of
         Copies -> ok;
         Copies -> ok;
         _Other ->
         _Other ->
-            {atomic, ok} = mnesia:change_table_copy_type(?TAB, node(), Copies)
+            {atomic, ok} = mnesia:change_table_copy_type(?TAB, node(), Copies),
+            ok
     end,
     end,
     StatsFun = emqx_stats:statsfun('retained.count', 'retained.max'),
     StatsFun = emqx_stats:statsfun('retained.count', 'retained.max'),
     {ok, StatsTimer} = timer:send_interval(timer:seconds(1), stats),
     {ok, StatsTimer} = timer:send_interval(timer:seconds(1), stats),