From a3aa93fce8879b9314790abc75b00bbfbea2cff5 Mon Sep 17 00:00:00 2001 From: Archi Date: Sun, 3 Dec 2023 16:11:38 +0100 Subject: [PATCH] Fix diff announcement with no items added/changed --- .../Data/AnnouncementRequest.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Data/AnnouncementRequest.cs b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Data/AnnouncementRequest.cs index 828527944..17f39dd90 100644 --- a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Data/AnnouncementRequest.cs +++ b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Data/AnnouncementRequest.cs @@ -71,10 +71,7 @@ internal class AnnouncementRequest { throw new ArgumentOutOfRangeException(nameof(steamID)); } - if ((inventory == null) || (inventory.Count == 0)) { - throw new ArgumentNullException(nameof(inventory)); - } - + ArgumentNullException.ThrowIfNull(inventory); ArgumentException.ThrowIfNullOrEmpty(inventoryChecksum); if ((matchableTypes == null) || (matchableTypes.Count == 0)) {