minor cleanup

This commit is contained in:
UbitUmarov
2022-09-20 21:32:10 +01:00
parent 086fcc7ff7
commit 31fa8b45df
7 changed files with 26 additions and 34 deletions

View File

@@ -72,7 +72,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
{
while (tries > 0)
{
RegionInfo[] regionInfos = new RegionInfo[] { };
RegionInfo[] regionInfos = Array.Empty<RegionInfo>();
int regionCount = 0;
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
webRequest.Timeout = 30000; //30 Second Timeout
@@ -118,10 +118,10 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
if (((HttpWebResponse)ex.Response).StatusCode == HttpStatusCode.NotFound)
{
if (!allowRegionless)
throw ex;
throw;
}
else
throw ex;
throw;
}
if (regionCount > 0 || allowRegionless)