improved initialize() inside PresetController

This commit is contained in:
Dev 2024-02-25 11:54:13 +00:00
parent a5450c6552
commit 40b31e1fe0

View File

@ -22,9 +22,14 @@ export class PresetController
for (const [id, preset] of presets)
{
if (id != preset._id)
if (id !== preset._id)
{
this.logger.error(`Preset for template '${preset._items[0]._tpl}' has invalid id (${id} != ${preset._id}). Skipping`);
this.logger.error(
`Preset for template tpl: '${
preset._items[0]._tpl
} ${preset._name}' has invalid key: (${id} != ${preset._id}). Skipping`,
);
continue;
}