From 8e95d99e6a1891eaf9331f6384fa3b1a1065b871 Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Mon, 25 Dec 2023 15:51:01 +0700 Subject: Style updates (#447) * style updates * style updates * style updates * revert changes to dev/lib/handlebars * revert changes to dev/lib/handlebars * revert changes to dev/lib/handlebars --- dev/dictionary-validate.js | 6 +++--- dev/manifest-util.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'dev') diff --git a/dev/dictionary-validate.js b/dev/dictionary-validate.js index efc2eb8c..51edcc50 100644 --- a/dev/dictionary-validate.js +++ b/dev/dictionary-validate.js @@ -78,8 +78,8 @@ async function validateDictionaryBanks(mode, zip, fileNameFormat, schema) { * @param {import('dev/dictionary-validate').Schemas} schemas */ export async function validateDictionary(mode, archive, schemas) { - const fileName = 'index.json'; - const indexFile = archive.files[fileName]; + const indexFileName = 'index.json'; + const indexFile = archive.files[indexFileName]; if (!indexFile) { throw new Error('No dictionary index found in archive'); } @@ -93,7 +93,7 @@ export async function validateDictionary(mode, archive, schemas) { jsonSchema.validate(index); } catch (e) { const e2 = e instanceof Error ? e : new Error(`${e}`); - e2.message += `\n(in file ${fileName})}`; + e2.message += `\n(in file ${indexFileName})}`; throw e2; } diff --git a/dev/manifest-util.js b/dev/manifest-util.js index 42872a40..1802e139 100644 --- a/dev/manifest-util.js +++ b/dev/manifest-util.js @@ -127,7 +127,7 @@ export class ManifestUtil { _applyModifications(manifest, modifications) { if (Array.isArray(modifications)) { for (const modification of modifications) { - // rename to path2 to avoid clashing with imported `node:path` module. + // Rename to path2 to avoid clashing with imported `node:path` module. const {action, path: path2} = modification; switch (action) { case 'set': -- cgit v1.2.3