Refactor
This commit is contained in:
parent
8efa1454e4
commit
84c13cc1ba
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@ public class PacketForwardingService
|
|||
|
||||
private PacketId GetPacketId(Span<Byte> bytes)
|
||||
{
|
||||
PacketId id = 0;
|
||||
id = (PacketId)BitConverter.ToUInt16(new[] { bytes[0], bytes[1] });
|
||||
var id = (PacketId)BitConverter.ToUInt16(new[] { bytes[0], bytes[1] });
|
||||
return id;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue