]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor: remove duplicated code
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 6 May 2019 15:33:07 +0000 (17:33 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 6 May 2019 15:33:07 +0000 (17:33 +0200)
src/matcher.ts

index 523d07ed684cd3cbd30d2fb98dced77414e8bee0..02698f8278fe9c73c571598e972010d64acda495 100644 (file)
@@ -147,16 +147,6 @@ export class RouterMatcher {
           },
         }
       }
-
-      // put the parents of the matched record first
-      const matched = extractMatchedRecord(matcher)
-
-      return {
-        name,
-        path,
-        params,
-        matched,
-      }
     }
 
     // named route
@@ -182,15 +172,6 @@ export class RouterMatcher {
           },
         }
       }
-
-      const matched = extractMatchedRecord(matcher)
-
-      return {
-        name,
-        path,
-        params,
-        matched,
-      }
     }
 
     // location is a relative path