summaryrefslogtreecommitdiff
path: root/src/rabbit_binary_parser.erl
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-08-07 22:29:06 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-08-07 22:29:06 +0100
commit7b792312738d1042ad65b702c635fa79d80b5264 (patch)
tree217e809f6b0fbfb058955487d02c953e7ac486f9 /src/rabbit_binary_parser.erl
parent19e5b629dc24ff8669b582051909084db71c294b (diff)
downloadrabbitmq-server-7b792312738d1042ad65b702c635fa79d80b5264.tar.gz
cosmetic
- we only use quoted atoms in types and when quoting is needed - make existence check total - if it's the wrong type code further down the chain will barf anyway
Diffstat (limited to 'src/rabbit_binary_parser.erl')
-rw-r--r--src/rabbit_binary_parser.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_binary_parser.erl b/src/rabbit_binary_parser.erl
index b5ac4c66..ebf063f0 100644
--- a/src/rabbit_binary_parser.erl
+++ b/src/rabbit_binary_parser.erl
@@ -163,11 +163,11 @@ parse_property(table, <<Len:32/unsigned, Table:Len/binary, Rest/binary>>) ->
{parse_table(Table), Rest}.
ensure_content_decoded(Content = #content{properties = Props})
- when Props =/= 'none' ->
+ when Props =/= none ->
Content;
ensure_content_decoded(Content = #content{properties_bin = PropBin,
protocol = Protocol})
- when is_binary(PropBin) ->
+ when PropBin =/= none ->
Content#content{properties = Protocol:decode_properties(
Content#content.class_id, PropBin)}.