Removed unnecessary contains check in AbstractReferenceCounting

This commit is contained in:
DarthAffe committed 2023-04-11 00:29:01 +02:00
1 parent f6433af4b5
commit 4216dacf4f
1 file changed
+1 -2
@@ -26,8 +26,7 @@ public abstract class AbstractReferenceCounting : IReferenceCounting
public void AddReferencingObject(object obj)
{
lock (_referencingObjects)
if (!_referencingObjects.Contains(obj))
_referencingObjects.Add(obj);
_referencingObjects.Add(obj);
}
/// <inheritdoc />