From 26ead25df66d1835bd0b2f2aa58106933498a758 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Thu, 3 Mar 2022 13:28:12 -0800 Subject: [PATCH] refactor(router): Use helper function to throw NoMatch (#45244) This update matches the other locations where noMatch is thrown. PR Close #45244 --- packages/router/src/apply_redirects.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router/src/apply_redirects.ts b/packages/router/src/apply_redirects.ts index c302c2538c5..d93eac1fc31 100644 --- a/packages/router/src/apply_redirects.ts +++ b/packages/router/src/apply_redirects.ts @@ -200,7 +200,7 @@ class ApplyRedirects { if (noLeftoversInUrl(segmentGroup, segments, outlet)) { return of(new UrlSegmentGroup([], {})); } - throw new NoMatch(segmentGroup); + return noMatch(segmentGroup); } throw e; }));