Minor: change the return value of unsuccessful posts to string.Empty.

connector_plugin
Diva Canto 2012-09-21 06:41:32 -07:00
parent e379566e6e
commit 5f97b3e1d9
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
asset1.Data = asset.Data; asset1.Data = asset.Data;
string id = m_scene.AssetService.Store(asset1); string id = m_scene.AssetService.Store(asset1);
if (id == UUID.Zero.ToString()) if (id == string.Empty)
{ {
m_log.DebugFormat("[HG ASSET MAPPER]: Asset server {0} did not accept {1}", url, asset.ID); m_log.DebugFormat("[HG ASSET MAPPER]: Asset server {0} did not accept {1}", url, asset.ID);
success = false; success = false;

View File

@ -137,7 +137,7 @@ namespace OpenSim.Services.HypergridService
public override string Store(AssetBase asset) public override string Store(AssetBase asset)
{ {
if (!m_AssetPerms.AllowedImport(asset.Type)) if (!m_AssetPerms.AllowedImport(asset.Type))
return UUID.Zero.ToString(); return string.Empty;
return base.Store(asset); return base.Store(asset);
} }