diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2023-12-25 15:51:01 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-25 08:51:01 +0000 |
commit | 8e95d99e6a1891eaf9331f6384fa3b1a1065b871 (patch) | |
tree | 2c5977e66410b502da436da7381d67b38698b5c4 /dev | |
parent | e0659a84b2c85344e000536f4d3fa53bd5932567 (diff) |
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
Diffstat (limited to 'dev')
-rw-r--r-- | dev/dictionary-validate.js | 6 | ||||
-rw-r--r-- | dev/manifest-util.js | 2 |
2 files changed, 4 insertions, 4 deletions
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': |