chore: make dyalizer happy
This commit is contained in:
parent
45eedbb9c6
commit
9986de49d1
|
@ -89,7 +89,8 @@ announce(Node, App) ->
|
||||||
%% replicant(5.6.0) will call old core(<5.6.0) announce_fun/2 is undef on old core
|
%% replicant(5.6.0) will call old core(<5.6.0) announce_fun/2 is undef on old core
|
||||||
%% so we just use anonymous function to update.
|
%% so we just use anonymous function to update.
|
||||||
try
|
try
|
||||||
{atomic, ok} = mria:transaction(?COMMON_SHARD, fun ?MODULE:announce_fun/2, [Node, Data])
|
{atomic, ok} = mria:transaction(?COMMON_SHARD, fun ?MODULE:announce_fun/2, [Node, Data]),
|
||||||
|
ok
|
||||||
catch
|
catch
|
||||||
error:undef ->
|
error:undef ->
|
||||||
{atomic, ok} = mria:transaction(
|
{atomic, ok} = mria:transaction(
|
||||||
|
@ -112,9 +113,9 @@ announce(Node, App) ->
|
||||||
_ = [update_minimum(API) || {API, _} <- Data],
|
_ = [update_minimum(API) || {API, _} <- Data],
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
)
|
),
|
||||||
end,
|
ok
|
||||||
ok.
|
end.
|
||||||
|
|
||||||
-spec versions_file(atom()) -> file:filename_all().
|
-spec versions_file(atom()) -> file:filename_all().
|
||||||
versions_file(App) ->
|
versions_file(App) ->
|
||||||
|
|
Loading…
Reference in New Issue