From 32b93c857f89283f276be5ae2e39c9d11c87fece Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 14 Jan 2023 13:33:24 +0100 Subject: var -> let Signed-off-by: TheArcaneBrony --- scripts/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/client.js') diff --git a/scripts/client.js b/scripts/client.js index 3cdd3719..4756fe46 100644 --- a/scripts/client.js +++ b/scripts/client.js @@ -232,15 +232,15 @@ const processFile = async (name) => { console.log(); - var existing = await fs.readdir(CACHE_PATH); + let existing = await fs.readdir(CACHE_PATH); while (existing.length > 0) { - var file = existing.shift(); + let file = existing.shift(); process.stdout.write( `Patching existing ${file}. Remaining: ${existing.length}. \r`, ); - var text = await fs.readFile(path.join(CACHE_PATH, file)); + let text = await fs.readFile(path.join(CACHE_PATH, file)); if (file.includes(".js") || file.includes(".css")) { text = doPatch(text.toString()); await fs.writeFile(path.join(CACHE_PATH, file), text.toString()); @@ -260,7 +260,7 @@ const processFile = async (name) => { let promises = []; - for (var i = 0; i < assets.length; i++) { + for (let i = 0; i < assets.length; i++) { const asset = assets[i]; if (existsSync(path.join(CACHE_PATH, `${asset}.js`))) { -- cgit 1.5.1