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

@@ -84,7 +84,7 @@ namespace OpenSim.Services.EstateService
MuteData[] data = m_database.Get(agentID);
if (data == null || data.Length == 0)
return new Byte[0];
return Array.Empty<byte>();
StringBuilder sb = new StringBuilder(16384);
foreach (MuteData d in data)
@@ -101,7 +101,7 @@ namespace OpenSim.Services.EstateService
if (dataCrc == crc)
{
if(crc == 0)
return new Byte[0];
return Array.Empty<byte>();
Byte[] ret = new Byte[1] {1};
return ret;