summaryrefslogtreecommitdiff
path: root/src
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
commit31cfc20bf6158c0cf21afd4bbb896e3f2204ba0a (patch)
tree10642a0493011c08366d5e95452c0e050764d899 /src
parent94059ac94682624d5edd6092a7b9bfd48b15b836 (diff)
downloadrabbitmq-server-git-31cfc20bf6158c0cf21afd4bbb896e3f2204ba0a.tar.gz
Cosmetic
Diffstat (limited to 'src')
-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 11342c60e5..9f1f29747f 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}) ->