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

@@ -187,7 +187,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
private bool Call(GridRegion region, Dictionary<string, object> sendData)
{
string reqString = ServerUtils.BuildQueryString(sendData);
// m_log.DebugFormat("[XESTATE CONNECTOR]: queryString = {0}", reqString);
// m_log.DebugFormat("[ESTATE CONNECTOR]: queryString = {0}", reqString);
try
{
//string url = "";
@@ -207,11 +207,11 @@ namespace OpenSim.Region.CoreModules.World.Estate
return indx > 0;
}
else
m_log.DebugFormat("[XESTATE CONNECTOR]: received empty reply");
m_log.DebugFormat("[ESTATE CONNECTOR]: received empty reply");
}
catch (Exception e)
{
m_log.DebugFormat("[XESTATE CONNECTOR]: Exception when contacting remote sim: {0}", e.Message);
m_log.DebugFormat("[ESTATE CONNECTOR]: Exception when contacting remote sim: {0}", e.Message);
}
return false;

View File

@@ -52,7 +52,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
{
m_asset = new AssetBase(UUID.Zero, pClientFilename, type, pRemoteClient.AgentId.ToString())
{
Data = new byte[0],
Data = Array.Empty<byte>(),
Description = "empty",
Local = true,
Temporary = true