use array.Empty<byte>

This commit is contained in:
UbitUmarov
2022-03-12 15:21:24 +00:00
parent 5ffa1801d8
commit e043d8a2eb
45 changed files with 100 additions and 103 deletions

View File

@@ -401,7 +401,7 @@ namespace OpenSim.Groups
msg.ParentEstateID = 0;
msg.Position = Vector3.Zero;
msg.RegionID = UUID.Zero.Guid;
msg.binaryBucket = new byte[0];
msg.binaryBucket = Array.Empty<byte>();
OutgoingInstantMessage(msg, invitee);
IClientAPI inviteeClient = GetActiveRootClient(invitee);
@@ -1117,7 +1117,7 @@ namespace OpenSim.Groups
msg.timestamp = (uint)Util.UnixTimeSinceEpoch(); ;
msg.fromAgentName = string.Empty;
msg.message = string.Empty;
msg.binaryBucket = new byte[0];
msg.binaryBucket = Array.Empty<byte>(); ;
}
return msg;
@@ -1276,7 +1276,7 @@ namespace OpenSim.Groups
msg.ParentEstateID = 0;
msg.Position = Vector3.Zero;
msg.RegionID = regionInfo.RegionID.Guid;
msg.binaryBucket = new byte[0];
msg.binaryBucket = Array.Empty<byte>(); ;
OutgoingInstantMessage(msg, ejecteeID);
}
@@ -1294,7 +1294,7 @@ namespace OpenSim.Groups
msg.ParentEstateID = 0;
msg.Position = Vector3.Zero;
msg.RegionID = regionInfo.RegionID.Guid;
msg.binaryBucket = new byte[0];
msg.binaryBucket = Array.Empty<byte>(); ;
OutgoingInstantMessage(msg, agentID);
}