Skip to content

Commit 23dbc24

Browse files
iiijarvisposva
iiijarvis
authored andcommitted
refactor: delete redundant code (#3010)
1 parent c0d3376 commit 23dbc24

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/history/hash.js

-2
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ export function getHash (): string {
125125
href = decodeURI(href.slice(0, hashIndex)) + href.slice(hashIndex)
126126
} else href = decodeURI(href)
127127
} else {
128-
if (searchIndex > -1) {
129128
href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex)
130-
}
131129
}
132130

133131
return href

0 commit comments

Comments
 (0)