diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-07 22:29:06 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-07 22:29:06 +0100 |
commit | 7b792312738d1042ad65b702c635fa79d80b5264 (patch) | |
tree | 217e809f6b0fbfb058955487d02c953e7ac486f9 /src/rabbit_binary_parser.erl | |
parent | 19e5b629dc24ff8669b582051909084db71c294b (diff) | |
download | rabbitmq-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.erl | 4 |
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)}. |