summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 2d55cad4cd..4dd19bd373 100644
--- a/src/rabbit_mirror_queue_misc.erl
+++ b/src/rabbit_mirror_queue_misc.erl
@@ -257,8 +257,8 @@ policy(Policy, Q) ->
module(#amqqueue{} = Q) ->
case rabbit_policy:get(<<"ha-mode">>, Q) of
- {ok, Mode} -> module(Mode);
- _ -> not_mirrored
+ undefined -> not_mirrored;
+ Mode -> module(Mode)
end;
module(Mode) when is_binary(Mode) ->