Skip to content

Commit 441d75b

Browse files
committed
refactor: use identity instad of boolean
1 parent dce4df5 commit 441d75b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export class MatcherPatternPathCustomParams<
330330
? value.map(encodeParam).join('/')
331331
: encodeParam(value)
332332
})
333-
.filter(Boolean)
333+
.filter(identityFn) // filter out empty values
334334
.join('/')
335335
)
336336
}

0 commit comments

Comments
 (0)