Converts forEach loop to for...of loop

This commit is contained in:
Refringe 2023-11-16 10:15:52 -05:00
parent be841a3de3
commit a4d2013ff6
No known key found for this signature in database
GPG Key ID: 64E03E5F892C6F9E

View File

@ -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)