Skip to content

Commit

Permalink
refactor: delete redundant code (#3010)
Browse files Browse the repository at this point in the history
  • Loading branch information
iiijarvis authored and posva committed Oct 25, 2019
1 parent c0d3376 commit 23dbc24
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/history/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ export function getHash (): string {
href = decodeURI(href.slice(0, hashIndex)) + href.slice(hashIndex)
} else href = decodeURI(href)
} else {
if (searchIndex > -1) {
href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex)
}
}

return href
Expand Down

0 comments on commit 23dbc24

Please sign in to comment.