From 2ad385b4c867763beb185325637d80596ae9cd50 Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Sat, 4 May 2024 21:09:56 -0400 Subject: [PATCH] Code cleanup --- util/packages.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/packages.mjs b/util/packages.mjs index bfc3bba5..596751de 100644 --- a/util/packages.mjs +++ b/util/packages.mjs @@ -10,7 +10,7 @@ const directory = pathJoin(__dirname, '..', 'packages'); const andReg = /^(.*)-([\d.]+)-and-([\d.]+|higher)$/; -const misplacedChilds = new Set([ +const misplacedChildren = new Set([ 'flash-player-2-java', 'flash-player-9.0.262.0-linux-sa' ]); @@ -118,7 +118,7 @@ export async function readPackageFile(f) { } } - if (!prefixed && !misplacedChilds.has(name)) { + if (!prefixed && !misplacedChildren.has(name)) { throw new Error(`Package in wrong file: ${name}: ${f}`); } }