Skip to content

Commit 11e51f5

Browse files
committed
Make dialyzer happy
1 parent d9103c9 commit 11e51f5

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

deps/rabbit/src/rabbit_boot_steps.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ find_steps(Apps) ->
4747
[Step || {App, _, _} = Step <- All, lists:member(App, Apps)].
4848

4949
run_step(Attributes, AttributeName) ->
50-
[begin
50+
_ = [begin
5151
?LOG_DEBUG("Applying MFA: M = ~ts, F = ~ts, A = ~tp",
5252
[M, F, A]),
5353
case apply(M,F,A) of

deps/rabbit/src/rabbit_classic_queue.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ recover_durable_queues(QueuesAndRecoveryTerms) ->
589589
gen_server2:mcall(
590590
[{rabbit_amqqueue_sup_sup:start_queue_process(node(), Q),
591591
{init, {self(), Terms}}} || {Q, Terms} <- QueuesAndRecoveryTerms]),
592-
[?LOG_ERROR("Queue ~tp failed to initialise: ~tp",
592+
_ = [?LOG_ERROR("Queue ~tp failed to initialise: ~tp",
593593
[Pid, Error]) || {Pid, Error} <- Failures],
594594
[Q || {_, {new, Q}} <- Results].
595595

deps/rabbit/src/rabbit_prelaunch_logging.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ clear_config_run_number() ->
501501
-spec configure_logger(rabbit_env:context()) -> ok.
502502

503503
configure_logger(Context) ->
504-
logger:set_primary_config(metadata, #{domain => ?RMQLOG_DOMAIN_GLOBAL}),
504+
_ = logger:set_primary_config(metadata, #{domain => ?RMQLOG_DOMAIN_GLOBAL}),
505505

506506
%% Configure main handlers.
507507
%% We distinguish them by their type and possibly other

deps/rabbit/src/rabbit_quorum_queue.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,7 +2303,7 @@ transfer_leadership(_TransferCandidates) ->
23032303
Queues = rabbit_amqqueue:list_local_leaders(),
23042304
?LOG_INFO("Will transfer leadership of ~b quorum queues with current leader on this node",
23052305
[length(Queues)]),
2306-
[begin
2306+
_ = [begin
23072307
Name = amqqueue:get_name(Q),
23082308
?LOG_DEBUG("Will trigger a leader election for local quorum queue ~ts",
23092309
[rabbit_misc:rs(Name)]),
@@ -2326,7 +2326,7 @@ stop_local_quorum_queue_followers() ->
23262326
Queues = rabbit_amqqueue:list_local_followers(),
23272327
?LOG_INFO("Will stop local follower replicas of ~b quorum queues on this node",
23282328
[length(Queues)]),
2329-
[begin
2329+
_ = [begin
23302330
Name = amqqueue:get_name(Q),
23312331
?LOG_DEBUG("Will stop a local follower replica of quorum queue ~ts",
23322332
[rabbit_misc:rs(Name)]),

deps/rabbit/src/rabbit_vhosts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ start_processes_for_all(Nodes) ->
115115
Names = list_names(),
116116
N = length(Names),
117117
?LOG_DEBUG("Will make sure that processes of ~p virtual hosts are running on all reachable cluster nodes", [N]),
118-
[begin
118+
_ = [begin
119119
try
120120
start_on_all_nodes(VH, Nodes)
121121
catch

deps/rabbitmq_consistent_hash_exchange/src/rabbit_exchange_type_consistent_hash.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ recover_exchange_and_bindings(#exchange{name = XName} = X) ->
143143
Bindings = rabbit_binding:list_for_source(XName),
144144
?LOG_DEBUG("Consistent hashing exchange: have ~b bindings to recover for exchange ~ts",
145145
[length(Bindings), rabbit_misc:rs(XName)]),
146-
[add_binding(none, X, B) || B <- lists:usort(Bindings)],
146+
_ = [add_binding(none, X, B) || B <- lists:usort(Bindings)],
147147
?LOG_DEBUG("Consistent hashing exchange: recovered bindings for exchange ~ts",
148148
[rabbit_misc:rs(XName)]).
149149

@@ -191,7 +191,7 @@ chx_hash_ring_update_fun(#chx_hash_ring{bucket_map = BM0,
191191

192192
remove_bindings(_Serial, _X, Bindings) ->
193193
Ret = rabbit_db_ch_exchange:delete_bindings(Bindings, fun ch_hash_ring_delete_fun/2),
194-
[?LOG_WARNING("Can't remove binding: hash ring state for exchange ~s wasn't found",
194+
_ = [?LOG_WARNING("Can't remove binding: hash ring state for exchange ~s wasn't found",
195195
[rabbit_misc:rs(X)]) || {not_found, X} <- Ret],
196196
ok.
197197

0 commit comments

Comments
 (0)