From a4d2013ff6cb7fc3e0dd4e957234fbf2c2eb0aab Mon Sep 17 00:00:00 2001 From: Refringe Date: Thu, 16 Nov 2023 10:15:52 -0500 Subject: [PATCH] Converts forEach loop to for...of loop --- project/src/loaders/PreAkiModLoader.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/project/src/loaders/PreAkiModLoader.ts b/project/src/loaders/PreAkiModLoader.ts index 94917fb5..297eca6b 100644 --- a/project/src/loaders/PreAkiModLoader.ts +++ b/project/src/loaders/PreAkiModLoader.ts @@ -213,11 +213,10 @@ export class PreAkiModLoader implements IModLoader validMods.sort((prev, next) => this.sortMods(prev, next, missingFromOrderJSON)); // log the missing mods from order.json - Object.keys(missingFromOrderJSON).forEach(( - missingMod, - ) => (this.logger.debug( - this.localisationService.getText("modloader-mod_order_missing_from_json", missingMod), - ))); + for (const missingMod of Object.keys(missingFromOrderJSON)) + { + this.logger.debug(this.localisationService.getText("modloader-mod_order_missing_from_json", missingMod)); + } // add mods for (const mod of validMods)