There was an error while loading. Please reload this page.
1 parent 88db19a commit 74d4179Copy full SHA for 74d4179
1 file changed
src/core/router.ts
@@ -927,11 +927,7 @@ export abstract class CoreRouter {
927
return (handlerFunction as any)(...pluginArgs)
928
}
929
930
- if (!metadata) {
931
- return handlerFunction(ctx, ctx.clearRequest)
932
- }
933
-
934
- if (!tokens.length) {
+ if (!metadata || !tokens.length) {
935
return handlerFunction(ctx, ctx.clearRequest)
936
937
0 commit comments