summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-10-12 16:03:42 +0100
committerMatthias Radestock <matthias@lshift.net>2008-10-12 16:03:42 +0100
commit70bf940a689e53949a7c918a56b697a16d84936c (patch)
treee67bdda91e9f045c2e80f28ade38f27d8a85fc91
parentdde9b0795640dd4268eac5e958b13d1ff07ffa76 (diff)
downloadrabbitmq-server-70bf940a689e53949a7c918a56b697a16d84936c.tar.gz
cosmetic
-rw-r--r--src/rabbit_exchange.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl
index c8c4f0fc..b1ef605f 100644
--- a/src/rabbit_exchange.erl
+++ b/src/rabbit_exchange.erl
@@ -268,12 +268,9 @@ has_bindings(ExchangeName) ->
key = '_'}},
continue(mnesia:select(route, [{MatchHead, [], ['$1']}], 1, read)).
-continue('$end_of_table') ->
- false;
-continue({[], Continuation}) ->
- continue(mnesia:select(Continuation));
-continue(_) ->
- true.
+continue('$end_of_table') -> false;
+continue({[_|_], _}) -> true;
+continue({[], Continuation}) -> continue(mnesia:select(Continuation)).
call_with_exchange(Exchange, Fun) ->
rabbit_misc:execute_mnesia_transaction(