From 1463db66beed82e1d3bbd591e6b12127a1d80f8e Mon Sep 17 00:00:00 2001 From: IamLizu Date: Wed, 25 Sep 2024 18:25:10 +0600 Subject: [PATCH] refactor: initialize `this.path` with `path` --- lib/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/layer.js b/lib/layer.js index e2fcba8..15df296 100644 --- a/lib/layer.js +++ b/lib/layer.js @@ -40,7 +40,7 @@ function Layer (path, options, fn) { this.keys = [] this.name = fn.name || '' this.params = undefined - this.path = undefined + this.path = path this.slash = path === '/' && opts.end === false function matcher (_path) {