Removed duplicate check before adding an item to AtomValueList (#145)

This commit is contained in:
Moh Narimani 2020-05-04 01:14:07 +04:30 committed by GitHub
parent 4a802d0c27
commit f3bf70b64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,13 +48,10 @@ namespace UnityAtoms
/// <param name="item">The item to add.</param>
public void Add(T item)
{
if (!list.Contains(item))
list.Add(item);
if (null != Added)
{
list.Add(item);
if (null != Added)
{
Added.Raise(item);
}
Added.Raise(item);
}
}