a few more useless changes

This commit is contained in:
UbitUmarov
2024-04-08 02:02:54 +01:00
parent f1cb40aa59
commit 44b0d30561
7 changed files with 26 additions and 54 deletions

View File

@@ -53,9 +53,9 @@ namespace OpenSim.Framework
public bool TryGet<T>(out T iface)
{
if (m_moduleInterfaces.ContainsKey(typeof(T)))
if (m_moduleInterfaces.TryGetValue(typeof(T), out object o))
{
iface = (T)m_moduleInterfaces[typeof(T)];
iface = (T)o;
return true;
}
iface = default(T);