1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 09:38:31 +00:00

Removed unnecessary contains check in AbstractReferenceCounting

This commit is contained in:
Darth Affe 2023-04-11 00:29:01 +02:00
parent f6433af4b5
commit 4216dacf4f

View File

@ -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 />