Skip to content

Commit f86e9fd

Browse files
committed
Simplify
1 parent f03cc5a commit f86e9fd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/vue-router/src/locationHistory.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,6 @@ export const createLocationHistory = () => {
243243
const ri = locationHistory[i];
244244
if (ri) {
245245
if (ri.pathname === routeInfo.pushedByRoute) {
246-
if (delta >= -1) {
247-
return ri;
248-
}
249246
return locationHistory[i + 1 + delta]
250247
}
251248
}

0 commit comments

Comments
 (0)