Skip to content

Commit

Permalink
Remove recursive handler matching
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsVomMars committed Mar 4, 2021
1 parent 56e324a commit b8448cc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ export class Node {
}
}
}
// Searches for wildcard handler if no subnode is found
for (const hdl of this.handlers) {
if (hdl.isWildcard()) {
return hdl.get(curPath);
}
}
return;
} else {
const curPath = path[0];
Expand Down

0 comments on commit b8448cc

Please sign in to comment.