fix(frame): make elvis && erlfmt happy
This commit is contained in:
parent
5febf480a2
commit
978350b643
|
@ -623,7 +623,6 @@ parse_binary_data(Bin) when
|
||||||
|
|
||||||
parse_topic_name(Bin, false) ->
|
parse_topic_name(Bin, false) ->
|
||||||
parse_utf8_string(Bin, false);
|
parse_utf8_string(Bin, false);
|
||||||
|
|
||||||
parse_topic_name(Bin, true) ->
|
parse_topic_name(Bin, true) ->
|
||||||
case parse_utf8_string(Bin, true) of
|
case parse_utf8_string(Bin, true) of
|
||||||
{<<>>, _Rest} -> ?PARSE_ERR(empty_topic_name);
|
{<<>>, _Rest} -> ?PARSE_ERR(empty_topic_name);
|
||||||
|
@ -766,9 +765,9 @@ serialize_variable(
|
||||||
) ->
|
) ->
|
||||||
[
|
[
|
||||||
serialize_utf8_string(TopicName),
|
serialize_utf8_string(TopicName),
|
||||||
if
|
case PacketId of
|
||||||
PacketId =:= undefined -> <<>>;
|
undefined -> <<>>;
|
||||||
true -> <<PacketId:16/big-unsigned-integer>>
|
_ -> <<PacketId:16/big-unsigned-integer>>
|
||||||
end,
|
end,
|
||||||
serialize_properties(Properties, Ver)
|
serialize_properties(Properties, Ver)
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue