chore: make dyalizer happy

This commit is contained in:
Ivan Dyachkov 2024-03-22 15:47:01 +01:00
parent 45eedbb9c6
commit 9986de49d1
1 changed files with 5 additions and 4 deletions

View File

@ -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
%% so we just use anonymous function to update.
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
error:undef ->
{atomic, ok} = mria:transaction(
@ -112,9 +113,9 @@ announce(Node, App) ->
_ = [update_minimum(API) || {API, _} <- Data],
ok
end
)
end,
ok.
),
ok
end.
-spec versions_file(atom()) -> file:filename_all().
versions_file(App) ->