Skip to content

Commit

Permalink
refactor: initialize this.path with path
Browse files Browse the repository at this point in the history
  • Loading branch information
IamLizu committed Sep 25, 2024
1 parent 2e7fb67 commit 1463db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Layer (path, options, fn) {
this.keys = []
this.name = fn.name || '<anonymous>'
this.params = undefined
this.path = undefined
this.path = path
this.slash = path === '/' && opts.end === false

function matcher (_path) {
Expand Down

0 comments on commit 1463db6

Please sign in to comment.