summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_framing_channel.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_framing_channel.erl b/src/rabbit_framing_channel.erl
index f96e69eb80..00b74ad010 100644
--- a/src/rabbit_framing_channel.erl
+++ b/src/rabbit_framing_channel.erl
@@ -74,8 +74,7 @@ read_frame(ChannelPid) ->
end.
mainloop(ChannelPid, Protocol) ->
- Decoded = read_frame(ChannelPid),
- case Decoded of
+ case read_frame(ChannelPid) of
{method, MethodName, FieldsBin} ->
Method = Protocol:decode_method_fields(MethodName, FieldsBin),
case Protocol:method_has_content(MethodName) of