Remove redundant nullability checks

This commit is contained in:
Liza 2024-11-18 20:54:09 +01:00
parent 70b0bef245
commit e4bbc05ede
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -219,7 +219,7 @@ public class RegularShopBase
if (item->ItemId == itemId) if (item->ItemId == itemId)
{ {
max += (999 - (int)item->Quantity); max += (999 - item->Quantity);
if (max >= 99) if (max >= 99)
break; break;
} }
@ -247,7 +247,7 @@ public class RegularShopBase
if (item == null || item->ItemId == 0) if (item == null || item->ItemId == 0)
continue; continue;
if (item->ItemId == itemId && predicate((int)item->Quantity)) if (item->ItemId == itemId && predicate(item->Quantity))
++count; ++count;
} }
} }