Fixed code warning

This commit is contained in:
DarthAffe committed 2021-09-06 00:55:48 +02:00
1 parent 6974203e34
commit d487bee35c
1 file changed
+2 -2
+2 -2
View File
@@ -68,7 +68,7 @@ namespace RGB.NET.Devices.DMX.E131
this.Hostname = deviceDefinition.Hostname; this.Hostname = deviceDefinition.Hostname;
this.Port = deviceDefinition.Port; this.Port = deviceDefinition.Port;
this.Universe = deviceDefinition.Universe; this.Universe = deviceDefinition.Universe;
byte[]? cid = deviceDefinition.CID; byte[]? cid = deviceDefinition.CID;
if ((cid == null) || (cid.Length != CID_LENGTH)) if ((cid == null) || (cid.Length != CID_LENGTH))
{ {
@@ -76,7 +76,7 @@ namespace RGB.NET.Devices.DMX.E131
new Random().NextBytes(cid); new Random().NextBytes(cid);
} }
CID = cid!; CID = cid;
DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model); DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model);
} }