summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michaelklishin@me.com>2023-01-31 19:31:59 -0500
committerGitHub <noreply@github.com>2023-01-31 19:31:59 -0500
commitfbaaa2df2abd377f9142568d256478ab9ca476c8 (patch)
tree54184bff027c736c7526339c5c123313f9906175
parentcfc7bfd826bddd4417aa96bc28ebed45295c32fa (diff)
parent2cf2133a445bef3354791acc1b6640b27f2433f5 (diff)
downloadrabbitmq-server-git-fbaaa2df2abd377f9142568d256478ab9ca476c8.tar.gz
Merge pull request #7133 from rabbitmq/mk-cli-dialyzer-fix
-rw-r--r--deps/rabbitmq_cli/lib/rabbitmqctl.ex5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/rabbitmq_cli/lib/rabbitmqctl.ex b/deps/rabbitmq_cli/lib/rabbitmqctl.ex
index ea84c812ad..8a1414e733 100644
--- a/deps/rabbitmq_cli/lib/rabbitmqctl.ex
+++ b/deps/rabbitmq_cli/lib/rabbitmqctl.ex
@@ -237,6 +237,11 @@ defmodule RabbitMQCtl do
end
end
+ @spec handle_shutdown(:ok) :: no_return()
+ defp handle_shutdown(:ok) do
+ exit_program(0)
+ end
+
@spec handle_shutdown({:error, integer(), nil}) :: no_return()
defp handle_shutdown({:error, exit_code, nil}) do
exit_program(exit_code)