Skip to content

Commit

Permalink
Fix strict typescript variable definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ceoloide committed Jan 6, 2025
1 parent 7c57ba6 commit 8be455f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utility_router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}.`)
}
}

Expand Down

0 comments on commit 8be455f

Please sign in to comment.