summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_mirror_queue_misc.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_mirror_queue_misc.erl b/src/rabbit_mirror_queue_misc.erl
index 4b22c2bf25..7e7a13043d 100644
--- a/src/rabbit_mirror_queue_misc.erl
+++ b/src/rabbit_mirror_queue_misc.erl
@@ -339,8 +339,8 @@ module(Mode) when is_binary(Mode) ->
validate_mode(Mode) ->
case module(Mode) of
- {ok, Module} ->
- Module;
+ {ok, _Module} ->
+ ok;
not_mirrored ->
{error, "~p is not a valid ha-mode value", [Mode]}
end.