Improve MongoIds (#537)

* Mongoid improvements pt1

* Format Style Fixes

* Fix incorrect string

* Fix != comparison

---------

Co-authored-by: sp-tarkov-bot <singleplayertarkov@gmail.com>
This commit is contained in:
Lacyway
2025-08-09 12:50:49 +02:00
committed by GitHub
parent f3134dec59
commit d468848b0c
25 changed files with 183 additions and 104 deletions
@@ -436,7 +436,7 @@ public class InventoryHelper(
/// <param name="output">OPTIONAL - ItemEventRouterResponse</param>
public void RemoveItem(PmcData profile, MongoId itemId, MongoId sessionId, ItemEventRouterResponse? output = null)
{
if (itemId.IsEmpty())
if (itemId.IsEmpty)
{
logger.Warning(serverLocalisationService.GetText("inventory-unable_to_remove_item_no_id_given"));
@@ -562,7 +562,7 @@ public class InventoryHelper(
ItemEventRouterResponse output
)
{
if (itemId.IsEmpty())
if (itemId.IsEmpty)
{
return output;
}