mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08: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:
committed by
Andrew Kushnir
parent
bc89598bb9
commit
26ead25df6
@@ -200,7 +200,7 @@ class ApplyRedirects {
|
||||
if (noLeftoversInUrl(segmentGroup, segments, outlet)) {
|
||||
return of(new UrlSegmentGroup([], {}));
|
||||
}
|
||||
throw new NoMatch(segmentGroup);
|
||||
return noMatch(segmentGroup);
|
||||
}
|
||||
throw e;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user