Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-tymoshenko committed Oct 5, 2023
1 parent 3fec074 commit 5461174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Router.prototype._on = function _on (method, path, opts, handler, store) {
currentNode.addRoute(route, this.constrainer)
}

Router.prototype.hasRoute = function has (method, path, constraints) {
Router.prototype.hasRoute = function hasRoute (method, path, constraints) {
const route = this._findRoute(method, path, constraints)
return route !== null
}
Expand Down

0 comments on commit 5461174

Please sign in to comment.