Fix diff announcement with no items added/changed

This commit is contained in:
Archi 2023-12-03 16:11:38 +01:00
parent 0095d458e7
commit a3aa93fce8
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -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)) {