summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-12-08 10:48:57 +0000
committerSimon MacMullen <simon@rabbitmq.com>2010-12-08 10:48:57 +0000
commit4b1537735bf523649db72c42288ff43fe7939b57 (patch)
tree10642a0493011c08366d5e95452c0e050764d899
parentb4d7b61f03173fde8fd53f6eb23e22fb3fcce700 (diff)
downloadrabbitmq-server-4b1537735bf523649db72c42288ff43fe7939b57.tar.gz
Cosmetic
-rw-r--r--src/rabbit_channel.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 11342c60..9f1f2974 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1294,12 +1294,9 @@ i(number, #ch{channel = Channel}) -> Channel;
i(user, #ch{username = Username}) -> Username;
i(vhost, #ch{virtual_host = VHost}) -> VHost;
i(transactional, #ch{transaction_id = TxnKey}) -> TxnKey =/= none;
-i(confirm, #ch{confirm_enabled = CE,
- confirm_multiple = CM}) -> case {CE, CM} of
- {false, _} -> none;
- {_, false} -> single;
- {_, true} -> multiple
- end;
+i(confirm, #ch{confirm_enabled = false}) -> none;
+i(confirm, #ch{confirm_multiple = false}) -> single;
+i(confirm, _) -> multiple;
i(consumer_count, #ch{consumer_mapping = ConsumerMapping}) ->
dict:size(ConsumerMapping);
i(unconfirmed, #ch{unconfirmed = UC}) ->