summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/dictionary-validate.js6
-rw-r--r--dev/manifest-util.js2
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':