From c2b1d1356c171e82975973f0e5f4eb846c78f0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Sun, 30 Mar 2025 21:12:24 +0200 Subject: [PATCH] Misc optimization --- ArchiSteamFarm/Collections/ConcurrentHashSet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Collections/ConcurrentHashSet.cs b/ArchiSteamFarm/Collections/ConcurrentHashSet.cs index 232d59b0c..54755a787 100644 --- a/ArchiSteamFarm/Collections/ConcurrentHashSet.cs +++ b/ArchiSteamFarm/Collections/ConcurrentHashSet.cs @@ -187,7 +187,7 @@ public sealed class ConcurrentHashSet : IReadOnlySet, ISet where T : no IReadOnlySet otherSet = other as IReadOnlySet ?? other.ToHashSet(); - HashSet removed = otherSet.Where(item => Contains(item) && BackingCollection.TryRemove(item, out _)).ToHashSet(); + HashSet removed = otherSet.Where(item => BackingCollection.TryRemove(item, out _)).ToHashSet(); bool modified = removed.Count > 0;