diff --git a/Server.Packets/PacketForwardingService.cs b/Server.Packets/PacketForwardingService.cs index ba4833c..2049ba7 100644 --- a/Server.Packets/PacketForwardingService.cs +++ b/Server.Packets/PacketForwardingService.cs @@ -34,8 +34,7 @@ public class PacketForwardingService private PacketId GetPacketId(Span 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; } } \ No newline at end of file