Skip to content

Commit 01266e2

Browse files
sty;e
Simplify the ushort conversion using ushort.
1 parent 693d9d7 commit 01266e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ public override void Initialize(NetworkManager networkManager = null)
16391639
{
16401640
Debug.Log($"The port is set by a command line option. Using following connection data: {ConnectionData.Address}:{portAsString}");
16411641
}
1642-
if (UInt16.TryParse(portAsString, out ushort port))
1642+
if (ushort.TryParse(portAsString, out ushort port))
16431643
{
16441644
ConnectionData.Port = port;
16451645
}

0 commit comments

Comments
 (0)