Skip to content
Snippets Groups Projects
Commit de67c9fd authored by Andrew Scott's avatar Andrew Scott Committed by Andrew Kushnir
Browse files

refactor(router): Use helper function to throw NoMatch (#45244)

    This update matches the other locations where noMatch is thrown.

PR Close #45244
parent 9a8ef7cc
Branches
Tags
No related merge requests found
......@@ -201,7 +201,7 @@ class ApplyRedirects {
if (noLeftoversInUrl(segmentGroup, segments, outlet)) {
return of(new UrlSegmentGroup([], {}));
}
throw new NoMatch(segmentGroup);
return noMatch(segmentGroup);
}
throw e;
}));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment