Skip to content

Commit

Permalink
[Core] Minor Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Nov 8, 2023
1 parent 0441d2f commit 2cd6194
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ protected override BinaryPacket ConstructTransEmp()

public static Dictionary<ushort, TlvBody> Deserialize(BinaryPacket packet, out State qrState)
{
qrState = (State)packet.ReadByte();
if (qrState == State.Confirmed)
if ((qrState = (State)packet.ReadByte()) == State.Confirmed)
{
packet.Skip(12); // misc unknown data
return TlvPacker.ReadTlvCollections(packet, true);
Expand Down

0 comments on commit 2cd6194

Please sign in to comment.