From 47b184624bd78d3ad01ae4b5fdd5cdaca63f53a7 Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 23 Mar 2025 14:05:15 +0100 Subject: [PATCH] cleanup intermediate variables --- src/services/inventoryService.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 158dec17..ef99f53a 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -341,8 +341,7 @@ export const addItem = async ( } } if (typeName in ExportFlavour) { - const inventoryChanges = addCustomization(inventory, typeName); - return inventoryChanges; + return addCustomization(inventory, typeName); } if (typeName in ExportUpgrades || typeName in ExportArcanes) { const changes = [ @@ -1335,8 +1334,7 @@ export const addKeyChainItems = async ( const nonStoreItems = keyChainItems.map(item => fromStoreItem(item)); - //TODO: inventoryChanges is not typed correctly - const inventoryChanges = {}; + const inventoryChanges: IInventoryChanges = {}; for (const item of nonStoreItems) { const inventoryChangesDelta = await addItem(inventory, item);