summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVlad Alexandru Ionescu <vlad@rabbitmq.com>2010-10-11 18:30:48 +0100
committerVlad Alexandru Ionescu <vlad@rabbitmq.com>2010-10-11 18:30:48 +0100
commit0a930d404c5f2fb3a3a9ae476e2cbd121fd21ec7 (patch)
treec7cef4f0ebb0d3253af2c3baeb33d24097332924 /src
parentcafdead33a454a5a47d8c55ecd3b9c80f44cfed6 (diff)
downloadrabbitmq-server-git-0a930d404c5f2fb3a3a9ae476e2cbd121fd21ec7.tar.gz
or should be orelse; cosmetic
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_binary_generator.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rabbit_binary_generator.erl b/src/rabbit_binary_generator.erl
index 5f97d6a825..722573c769 100644
--- a/src/rabbit_binary_generator.erl
+++ b/src/rabbit_binary_generator.erl
@@ -315,18 +315,18 @@ clear_encoded_content(Content = #content{}) ->
map_exception(Channel, Reason, Protocol) ->
{SuggestedClose, ReplyCode, ReplyText, FailedMethod} =
lookup_amqp_exception(Reason, Protocol),
- ShouldClose = SuggestedClose or (Channel == 0),
+ ShouldClose = SuggestedClose orelse (Channel == 0),
{ClassId, MethodId} = case FailedMethod of
{_, _} -> FailedMethod;
- none -> {0, 0};
- _ -> Protocol:method_id(FailedMethod)
+ none -> {0, 0};
+ _ -> Protocol:method_id(FailedMethod)
end,
{CloseChannel, CloseMethod} =
case ShouldClose of
- true -> {0, #'connection.close'{reply_code = ReplyCode,
- reply_text = ReplyText,
- class_id = ClassId,
- method_id = MethodId}};
+ true -> {0, #'connection.close'{reply_code = ReplyCode,
+ reply_text = ReplyText,
+ class_id = ClassId,
+ method_id = MethodId}};
false -> {Channel, #'channel.close'{reply_code = ReplyCode,
reply_text = ReplyText,
class_id = ClassId,