diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2011-03-28 21:53:40 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-03-28 21:53:40 +0100 |
commit | 6459424a0c246cd21b64d46d3b16a950487d5ab1 (patch) | |
tree | facf17672eb3dbe5aa9366e356954f3a6ec0d00b | |
parent | baf3572c49471b780a88475baa92feb64749f90a (diff) | |
download | rabbitmq-server-6459424a0c246cd21b64d46d3b16a950487d5ab1.tar.gz |
cosmetic
-rw-r--r-- | src/rabbit_exchange.erl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl index 3c42ed3c..ff15ce3a 100644 --- a/src/rabbit_exchange.erl +++ b/src/rabbit_exchange.erl @@ -280,12 +280,10 @@ call_with_exchange(XName, Fun) -> end). delete(XName, IfUnused) -> - delete0(XName, case IfUnused of - true -> fun conditional_delete/1; - false -> fun unconditional_delete/1 - end). - -delete0(XName, Fun) -> + Fun = case IfUnused of + true -> fun conditional_delete/1; + false -> fun unconditional_delete/1 + end, call_with_exchange( XName, fun (X) -> |