From e4bbc05ede6f6f01e7028b24614ed8cb333e909c Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Mon, 18 Nov 2024 20:54:09 +0100 Subject: [PATCH] Remove redundant nullability checks --- Shop/RegularShopBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shop/RegularShopBase.cs b/Shop/RegularShopBase.cs index f806b5c..38a3509 100644 --- a/Shop/RegularShopBase.cs +++ b/Shop/RegularShopBase.cs @@ -219,7 +219,7 @@ public class RegularShopBase if (item->ItemId == itemId) { - max += (999 - (int)item->Quantity); + max += (999 - item->Quantity); if (max >= 99) break; } @@ -247,7 +247,7 @@ public class RegularShopBase if (item == null || item->ItemId == 0) continue; - if (item->ItemId == itemId && predicate((int)item->Quantity)) + if (item->ItemId == itemId && predicate(item->Quantity)) ++count; } }