Skip to content

Commit 7fe78a3

Browse files
committed
Better fix for a Dialyzer warning
The previous fix was leading to a badmatch in some cases, including when trying to stop a node that was already stopped.
1 parent 9fed03a commit 7fe78a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbitmq_ct_helpers/src/rabbit_ct_broker_helpers.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ stop_rabbitmq_node(Config, NodeConfig) ->
11341134
{"RABBITMQ_NODENAME_FOR_PATHS=~ts", [InitialNodename]}
11351135
],
11361136
Cmd = ["stop-node" | MakeVars],
1137-
{ok, _} = case rabbit_ct_helpers:get_config(Config, rabbitmq_run_cmd) of
1137+
_ = case rabbit_ct_helpers:get_config(Config, rabbitmq_run_cmd) of
11381138
undefined ->
11391139
rabbit_ct_helpers:make(Config, SrcDir, Cmd);
11401140
RunCmd ->

0 commit comments

Comments
 (0)