diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2010-06-07 17:16:43 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-06-07 17:16:43 +0100 |
commit | e0f8517bf08e5beb968dc0aac50eec991073e751 (patch) | |
tree | fa5321b746fd242753082792441e7800e8617b19 | |
parent | b0499632dd68b85ea0f6649dbbbcddaa752297c1 (diff) | |
download | rabbitmq-server-e0f8517bf08e5beb968dc0aac50eec991073e751.tar.gz |
cosmetic
-rw-r--r-- | src/rabbit_channel.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 88a0a4f5..55218531 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -918,11 +918,8 @@ binding_action(Fun, ExchangeNameBin, QueueNameBin, RoutingKey, Arguments, State), ExchangeName = rabbit_misc:r(VHostPath, exchange, ExchangeNameBin), check_read_permitted(ExchangeName, State), - CheckExclusive = fun (_X, Q) -> - check_exclusive_access(Q, ReaderPid) - end, case Fun(ExchangeName, QueueName, ActualRoutingKey, Arguments, - CheckExclusive) of + fun (_X, Q) -> check_exclusive_access(Q, ReaderPid) end) of {error, exchange_not_found} -> rabbit_misc:not_found(ExchangeName); {error, queue_not_found} -> |