mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
Removed unnecessary contains check in AbstractReferenceCounting
This commit is contained in:
parent
f6433af4b5
commit
4216dacf4f
@ -26,8 +26,7 @@ public abstract class AbstractReferenceCounting : IReferenceCounting
|
|||||||
public void AddReferencingObject(object obj)
|
public void AddReferencingObject(object obj)
|
||||||
{
|
{
|
||||||
lock (_referencingObjects)
|
lock (_referencingObjects)
|
||||||
if (!_referencingObjects.Contains(obj))
|
_referencingObjects.Add(obj);
|
||||||
_referencingObjects.Add(obj);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user