summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 144253f89e..b02a3c0a38 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -171,9 +171,7 @@ return_queue_declare_ok(State, NoWait, Q) ->
expand_queue_name_shortcut(<<>>, #ch{ most_recently_declared_queue = <<>> }) ->
rabbit_misc:protocol_error(
not_allowed, "no previously declared queue", []);
-expand_queue_name_shortcut(<<>>, #ch{ virtual_host = VHostPath,
- most_recently_declared_queue = MRDQ }) ->
- rabbit_misc:r(VHostPath, queue, MRDQ);
+expand_queue_name_shortcut(<<>>, #ch{ most_recently_declared_queue = MRDQ }) -> MRDQ;
expand_queue_name_shortcut(QueueNameBin, #ch{ virtual_host = VHostPath }) ->
rabbit_misc:r(VHostPath, queue, QueueNameBin).