Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete redundant code #3010

Merged
merged 1 commit into from
Oct 25, 2019
Merged

delete redundant code #3010

merged 1 commit into from
Oct 25, 2019

Conversation

iiijarvis
Copy link
Contributor

No need to judge again

searchIndex > -1

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex)
href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex)

@posva posva merged commit 23dbc24 into vuejs:dev Oct 25, 2019
@vue-bot
Copy link

vue-bot commented Oct 25, 2019

Hey @iiijarvis, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants