Simplify FlotsamAssetCache.CheckFromMemoryCache()
parent
d381da81d6
commit
ee8ba1ab9a
|
@ -344,12 +344,7 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||||
|
|
||||||
private bool CheckFromMemoryCache(string id)
|
private bool CheckFromMemoryCache(string id)
|
||||||
{
|
{
|
||||||
AssetBase asset = null;
|
return m_MemoryCache.Contains(id);
|
||||||
|
|
||||||
if (m_MemoryCache.TryGetValue(id, out asset))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue