diff --git a/ArchiSteamFarm/Steam/Exchange/Trading.cs b/ArchiSteamFarm/Steam/Exchange/Trading.cs index 0f3978b6b..1f3d6ab5b 100644 --- a/ArchiSteamFarm/Steam/Exchange/Trading.cs +++ b/ArchiSteamFarm/Steam/Exchange/Trading.cs @@ -648,11 +648,7 @@ public sealed class Trading : IDisposable { } // Get sets we're interested in - HashSet<(uint RealAppID, Asset.EType Type, Asset.ERarity Rarity)> wantedSets = new(); - - foreach (Asset item in tradeOffer.ItemsToGive) { - wantedSets.Add((item.RealAppID, item.Type, item.Rarity)); - } + HashSet<(uint RealAppID, Asset.EType Type, Asset.ERarity Rarity)> wantedSets = tradeOffer.ItemsToGive.Select(static item => (item.RealAppID, item.Type, item.Rarity)).ToHashSet(); // Now check if it's worth for us to do the trade HashSet inventory;