]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: comments
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 6 May 2019 15:21:02 +0000 (17:21 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 6 May 2019 15:21:02 +0000 (17:21 +0200)
src/matcher.ts

index ccf4d135804cec8b918cc24d1032cc1d5421e32c..8be13b2d2cc3a78034b66183d9b551caf915454d 100644 (file)
@@ -105,11 +105,12 @@ export class RouterMatcher {
     // TODO: refactor with type guards
 
     if ('path' in location) {
-      // we don't even need currentLocation here
       matcher = this.matchers.find(m => m.re.test(location.path))
       // no need to resolve the path with the matcher as it was provided
       path = location.path
 
+      // TODO: should go away but stop matching
+      // TODO: warning of unused params if provided
       if (!matcher) throw new NoRouteMatchError(currentLocation, location)
 
       name = matcher.record.name