summaryrefslogtreecommitdiff
path: root/dev/dictionary-validate.js
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2023-12-25 15:51:01 +0700
committerGitHub <noreply@github.com>2023-12-25 08:51:01 +0000
commit8e95d99e6a1891eaf9331f6384fa3b1a1065b871 (patch)
tree2c5977e66410b502da436da7381d67b38698b5c4 /dev/dictionary-validate.js
parente0659a84b2c85344e000536f4d3fa53bd5932567 (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/dictionary-validate.js')
-rw-r--r--dev/dictionary-validate.js6
1 files changed, 3 insertions, 3 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;
}