Skip to content

Commit ab29dd9

Browse files
committed
Squash dialyzer warnings
1 parent 61c67ef commit ab29dd9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

deps/rabbit/src/rabbit_stream_sac_coordinator_v4.erl

+2-6
Original file line numberDiff line numberDiff line change
@@ -465,14 +465,10 @@ state_to_map(#?STATE{groups = Groups, pids_groups = PidsGroups}) ->
465465
groups_to_map(Groups) when is_map(Groups) ->
466466
maps:fold(fun(K, V, Acc) ->
467467
Acc#{K => group_to_map(V)}
468-
end, #{}, Groups);
469-
groups_to_map(_) ->
470-
#{}.
468+
end, #{}, Groups).
471469

472470
pids_groups_to_map(PidsGroups) when is_map(PidsGroups) ->
473-
PidsGroups;
474-
pids_groups_to_map(_) ->
475-
#{}.
471+
PidsGroups.
476472

477473
group_to_map(#group{consumers = Consumers, partition_index = Index}) ->
478474
OutConsumers = lists:foldl(fun(C, Acc) ->

0 commit comments

Comments
 (0)