Explorar el Código

Remove redundant null check

NX hace 7 años
padre
commit
56e9bf454e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Source/Managed/ENet.cs

+ 2 - 2
Source/Managed/ENet.cs

@@ -528,7 +528,7 @@ namespace ENet {
 
 	public struct Peer {
 		private IntPtr nativePeer;
-		private uint? nativeID;
+		private uint nativeID;
 
 		internal IntPtr NativeData {
 			get {
@@ -553,7 +553,7 @@ namespace ENet {
 
 		public uint ID {
 			get {
-				return nativeID ?? 0;
+				return nativeID;
 			}
 		}