CLI: Resolve elixirc warnings

This commit is contained in:
Michael Davis 2024-12-04 11:07:34 -05:00
parent 38091430b5
commit d58d874a0b
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ defmodule RabbitMQ.CLI.AutoComplete do
defp complete_command_opts(command, <<"-", _::binary>> = opt) do
switches =
command.switches
command.switches()
|> Keyword.keys()
|> Enum.map(fn sw -> "--" <> to_string(sw) end)

View File

@ -10,7 +10,7 @@ defmodule CheckIfAnyDeprecatedFeaturesAreUsedCommandTest do
@command RabbitMQ.CLI.Diagnostics.Commands.CheckIfAnyDeprecatedFeaturesAreUsedCommand
@policy_name "cmq-policy-8373"
@policy_value "{\"ha-mode\":\"all\"}"
# @policy_value "{\"ha-mode\":\"all\"}"
setup_all do
RabbitMQ.CLI.Core.Distribution.start()

View File

@ -10,7 +10,7 @@ defmodule CheckIfClusterHasClassicQueueMirroringPolicyCommandTest do
@command RabbitMQ.CLI.Diagnostics.Commands.CheckIfClusterHasClassicQueueMirroringPolicyCommand
@policy_name "cmq-policy-8373"
@policy_value "{\"ha-mode\":\"all\"}"
# @policy_value "{\"ha-mode\":\"all\"}"
setup_all do
RabbitMQ.CLI.Core.Distribution.start()