mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Simplify FlotsamAssetCache.CheckFromMemoryCache()
This commit is contained in:
@@ -344,12 +344,7 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
|
||||
private bool CheckFromMemoryCache(string id)
|
||||
{
|
||||
AssetBase asset = null;
|
||||
|
||||
if (m_MemoryCache.TryGetValue(id, out asset))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return m_MemoryCache.Contains(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user