mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-16 06:20:34 +00:00
Misc optimization
This commit is contained in:
@@ -187,7 +187,7 @@ public sealed class ConcurrentHashSet<T> : IReadOnlySet<T>, ISet<T> where T : no
|
||||
|
||||
IReadOnlySet<T> otherSet = other as IReadOnlySet<T> ?? other.ToHashSet();
|
||||
|
||||
HashSet<T> removed = otherSet.Where(item => Contains(item) && BackingCollection.TryRemove(item, out _)).ToHashSet();
|
||||
HashSet<T> removed = otherSet.Where(item => BackingCollection.TryRemove(item, out _)).ToHashSet();
|
||||
|
||||
bool modified = removed.Count > 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user