From a38cf7fa69edf85064fc1ba6bfdc0769c8ac0fcc Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 1 Feb 2024 13:58:06 +0000 Subject: [PATCH] Remove redundant else from `toggleItem()` --- project/src/controllers/InventoryController.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/project/src/controllers/InventoryController.ts b/project/src/controllers/InventoryController.ts index b6281438..d0034b27 100644 --- a/project/src/controllers/InventoryController.ts +++ b/project/src/controllers/InventoryController.ts @@ -526,12 +526,10 @@ export class InventoryController return this.eventOutputHolder.getOutput(sessionID); } - else - { - this.logger.warning( - this.localisationService.getText("inventory-unable_to_toggle_item_not_found", body.item), - ); - } + + this.logger.warning( + this.localisationService.getText("inventory-unable_to_toggle_item_not_found", body.item), + ); return { warnings: [], profileChanges: {} }; }