cosmetics

This commit is contained in:
UbitUmarov
2026-03-15 04:45:37 +00:00
parent 66fb7dee6b
commit 2a5389cc67
17 changed files with 57 additions and 54 deletions

View File

@@ -958,7 +958,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
{
if (GetUser(userID, out UserData ud) && ud != null)
{
if (ud.LastName.StartsWith("@"))
if (ud.LastName.StartsWith('@'))
{
string[] parts = ud.FirstName.Split('.');
if (parts.Length >= 2)

View File

@@ -1239,7 +1239,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver
$"The OAR you are trying to load has major version number of {majorVersion} but this version can only load OARs with major version number {MAX_MAJOR_VERSION} and below");
}
m_log.InfoFormat($"[ARCHIVER]: Loading OAR with version {version}");
m_log.Info($"[ARCHIVER]: Loading OAR with version {version}");
}
else if (xtr.Name.ToString() == "datetime")
{

View File

@@ -157,7 +157,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver
{
if(!UUID.TryParse(thiskey, out UUID id) || id.IsZero())
{
m_log.InfoFormat($"[ARCHIVER]: cannot save asset {kvp.Key} because it has Invalid UUID");
m_log.Info($"[ARCHIVER]: cannot save asset {kvp.Key} because it has Invalid UUID");
m_notFoundAssetUuids.Add(kvp.Key);
continue;
}

View File

@@ -381,12 +381,12 @@ namespace OpenSim.Region.CoreModules.World.Terrain
}
catch (NotImplementedException)
{
m_log.ErrorFormat($"{LogHeader}Unable to load heightmap, the {loader.Value} parser does not support file loading. (May be save only)");
m_log.Error($"{LogHeader}Unable to load heightmap, the {loader.Value} parser does not support file loading. (May be save only)");
throw new TerrainException($"unable to load heightmap: parser {loader.Value} does not support loading");
}
catch (FileNotFoundException)
{
m_log.ErrorFormat($"{LogHeader}Unable to load heightmap, file not found. (A directory permissions error may also cause this)");
m_log.Error($"{LogHeader}Unable to load heightmap, file not found. (A directory permissions error may also cause this)");
throw new TerrainException($"unable to load heightmap: file {filename} not found (or permissions do not allow access");
}
catch (ArgumentException e)
@@ -498,7 +498,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
}
catch (NotImplementedException)
{
m_log.ErrorFormat($"{LogHeader}Unable to load heightmap, the { loader.Value} parser does not support file loading. (May be save only)");
m_log.Error($"{LogHeader}Unable to load heightmap, the { loader.Value} parser does not support file loading. (May be save only)");
throw new TerrainException("unable to load heightmap: parser {loader.Value} does not support loading");
}
}