Skip to content

Commit

Permalink
fix: revert 'if (nextCharCode === 58)' stmt to one line
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-michelet committed Feb 23, 2024
1 parent c9ccb25 commit b34c360
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,8 @@ Router.prototype.findRoute = function findNode (method, path, constraints = {})
if (charCode === 47) break
if (charCode === 58) {
const nextCharCode = pattern.charCodeAt(j + 1)
if (nextCharCode === 58) {
j++
} else break
if (nextCharCode === 58) j++
else break
}
}

Expand Down

0 comments on commit b34c360

Please sign in to comment.