Skip to content

Commit 9ba545c

Browse files
committed
Fix dialyzer issue.
1 parent dd49cbe commit 9ba545c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

deps/rabbit/src/rabbit_db_cluster.erl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,15 @@ join(RemoteNode, NodeType)
231231
ok = rabbit_mnesia:leave_discover_cluster(RemoteNode),
232232
join(RemoteNode, NodeType)
233233
catch
234+
%% Should we handle the catched error - my reasoning for
235+
%% ignoring it is that the error we want to show is the
236+
%% issue of joinging the cluster, not the potential error
237+
%% of leaving the cluster.
234238
_ ->
235239
rabbit_log:error(Msg),
236240
Error
237241
end
238-
end;
239-
{error, _} = Error ->
240-
Error
242+
end
241243
end.
242244

243245
join_using_mnesia(ClusterNodes, NodeType) when is_list(ClusterNodes) ->

0 commit comments

Comments
 (0)