From 84c13cc1ba8cfac5829d7feaf902071c659aafc0 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Sat, 31 Dec 2022 17:46:33 +0100 Subject: [PATCH] Refactor --- Server.Packets/PacketForwardingService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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