diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2010-10-18 12:00:47 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-10-18 12:00:47 +0100 |
commit | 83103175b4f0c1916d7b3ed55d96a858cb64706f (patch) | |
tree | 3976c0724dd146e99b8c8347e8ba1693c7f2e9d6 | |
parent | f4d21273da86345c310120d5b57cebb23941e3e9 (diff) | |
download | rabbitmq-server-83103175b4f0c1916d7b3ed55d96a858cb64706f.tar.gz |
Gratuitous refactoring
-rw-r--r-- | src/rabbit_channel.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index be17742c..dcae00bf 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -936,9 +936,8 @@ binding_action(Fun, ExchangeNameBin, DestinationType, DestinationNameBin, {DestinationName, ActualRoutingKey} = expand_binding(DestinationType, DestinationNameBin, RoutingKey, State), check_write_permitted(DestinationName, State), - check_not_default_exchange(DestinationName), ExchangeName = rabbit_misc:r(VHostPath, exchange, ExchangeNameBin), - check_not_default_exchange(ExchangeName), + [check_not_default_exchange(N) || N <- [DestinationName, ExchangeName]], check_read_permitted(ExchangeName, State), case Fun(#binding{source = ExchangeName, destination = DestinationName, |