mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(router): Use helper function to throw NoMatch (#45244)
This update matches the other locations where noMatch is thrown. PR Close #45244
This commit is contained in:
parent
bc89598bb9
commit
26ead25df6
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ class ApplyRedirects {
|
|||
if (noLeftoversInUrl(segmentGroup, segments, outlet)) {
|
||||
return of(new UrlSegmentGroup([], {}));
|
||||
}
|
||||
throw new NoMatch(segmentGroup);
|
||||
return noMatch(segmentGroup);
|
||||
}
|
||||
throw e;
|
||||
}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue