From 5f97b3e1d9775a88c1d952f1d599254969a262d2 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Fri, 21 Sep 2012 06:41:32 -0700 Subject: Minor: change the return value of unsuccessful posts to string.Empty. --- OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs | 2 +- OpenSim/Services/HypergridService/HGAssetService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs index fcecbbc..144cc87 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs @@ -113,7 +113,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess asset1.Data = asset.Data; 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); success = false; diff --git a/OpenSim/Services/HypergridService/HGAssetService.cs b/OpenSim/Services/HypergridService/HGAssetService.cs index f1275a0..84dec8d 100644 --- a/OpenSim/Services/HypergridService/HGAssetService.cs +++ b/OpenSim/Services/HypergridService/HGAssetService.cs @@ -137,7 +137,7 @@ namespace OpenSim.Services.HypergridService public override string Store(AssetBase asset) { if (!m_AssetPerms.AllowedImport(asset.Type)) - return UUID.Zero.ToString(); + return string.Empty; return base.Store(asset); } -- cgit v1.1