remove some more useless NULL arguments

This commit is contained in:
UbitUmarov
2019-10-22 13:04:01 +01:00
parent da0a8d6c43
commit 46e36601cb
20 changed files with 81 additions and 99 deletions

View File

@@ -125,14 +125,14 @@ namespace OpenSim.Server.Handlers.Asset
if (asset == null || asset.Data.Length == 0)
{
MainConsole.Instance.Output("Could not find asset with ID {0}", null, args[2]);
MainConsole.Instance.Output("Could not find asset with ID {0}", args[2]);
return;
}
if (!m_AssetService.Delete(asset.ID))
MainConsole.Instance.Output("ERROR: Could not delete asset {0} {1}", null, asset.ID, asset.Name);
MainConsole.Instance.Output("ERROR: Could not delete asset {0} {1}", asset.ID, asset.Name);
else
MainConsole.Instance.Output("Deleted asset {0} {1}", null, asset.ID, asset.Name);
MainConsole.Instance.Output("Deleted asset {0} {1}", asset.ID, asset.Name);
}
void HandleDumpAsset(string module, string[] args)
@@ -148,14 +148,14 @@ namespace OpenSim.Server.Handlers.Asset
if (!UUID.TryParse(rawAssetId, out assetId))
{
MainConsole.Instance.Output("ERROR: {0} is not a valid ID format", null, rawAssetId);
MainConsole.Instance.Output("ERROR: {0} is not a valid ID format", rawAssetId);
return;
}
AssetBase asset = m_AssetService.Get(assetId.ToString());
if (asset == null)
{
MainConsole.Instance.Output("ERROR: No asset found with ID {0}", null, assetId);
MainConsole.Instance.Output("ERROR: No asset found with ID {0}", assetId);
return;
}
@@ -172,7 +172,7 @@ namespace OpenSim.Server.Handlers.Asset
}
}
MainConsole.Instance.Output("Asset dumped to file {0}", null, fileName);
MainConsole.Instance.Output("Asset dumped to file {0}", fileName);
}
void HandleShowAsset(string module, string[] args)
@@ -193,13 +193,13 @@ namespace OpenSim.Server.Handlers.Asset
int i;
MainConsole.Instance.Output("Name: {0}", null, asset.Name);
MainConsole.Instance.Output("Description: {0}", null, asset.Description);
MainConsole.Instance.Output("Type: {0} (type number = {1})", null, (AssetType)asset.Type, asset.Type);
MainConsole.Instance.Output("Content-type: {0}", null, asset.Metadata.ContentType);
MainConsole.Instance.Output("Size: {0} bytes", null, asset.Data.Length);
MainConsole.Instance.Output("Temporary: {0}", null, asset.Temporary ? "yes" : "no");
MainConsole.Instance.Output("Flags: {0}", null, asset.Metadata.Flags);
MainConsole.Instance.Output("Name: {0}", asset.Name);
MainConsole.Instance.Output("Description: {0}", asset.Description);
MainConsole.Instance.Output("Type: {0} (type number = {1})", (AssetType)asset.Type, asset.Type);
MainConsole.Instance.Output("Content-type: {0}", asset.Metadata.ContentType);
MainConsole.Instance.Output("Size: {0} bytes", asset.Data.Length);
MainConsole.Instance.Output("Temporary: {0}", asset.Temporary ? "yes" : "no");
MainConsole.Instance.Output("Flags: {0}", asset.Metadata.Flags);
for (i = 0 ; i < 5 ; i++)
{