From 8be455fd160c5bcf8bafea2acace32e345c1f439 Mon Sep 17 00:00:00 2001 From: Marco Massarelli Date: Mon, 6 Jan 2025 16:05:25 -0500 Subject: [PATCH] Fix `strict` typescript variable definition --- utility_router.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utility_router.js b/utility_router.js index a1f0ed3..2e9e1e6 100644 --- a/utility_router.js +++ b/utility_router.js @@ -157,8 +157,8 @@ module.exports = { let start = undefined // [x, y] for (let i = 0; i < route.length; i++) { - ch = route[i].toLowerCase() - switch (ch) { + let command = route[i].toLowerCase() + switch (command) { case "f": layer = "F.Cu" break @@ -223,7 +223,7 @@ module.exports = { start = undefined break default: - throw new Error(`Unsupported character '${ch}' at position ${i}.`) + throw new Error(`Unsupported character '${command}' at position ${i}.`) } }