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:
Andrew Scott
2022-03-03 13:28:12 -08:00
committed by Andrew Kushnir
parent bc89598bb9
commit 26ead25df6
+1 -1
View File
@@ -200,7 +200,7 @@ class ApplyRedirects {
if (noLeftoversInUrl(segmentGroup, segments, outlet)) {
return of(new UrlSegmentGroup([], {}));
}
throw new NoMatch(segmentGroup);
return noMatch(segmentGroup);
}
throw e;
}));