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

Remove unreachable code so we can pass go vet #486

Merged
merged 1 commit into from
Jan 6, 2018
Merged

Remove unreachable code so we can pass go vet #486

merged 1 commit into from
Jan 6, 2018

Conversation

ryboe
Copy link
Contributor

@ryboe ryboe commented Dec 17, 2017

This makes gocode pass go vet ./....

This makes gocode pass go vet ./...
}
return ""
return i.tok.String()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unnecessary else

@nsf
Copy link
Owner

nsf commented Dec 18, 2017

It will break compilation on older versions of Go. Although to be honest, I'm not sure if gocode compiles there. So, I'll probably accept the patch, will think about it for a few days. Probably nobody uses Go versions 1.4 and older.

@ryboe
Copy link
Contributor Author

ryboe commented Dec 18, 2017

Go is pretty unique among programming languages in that most of the community is using a recent version of the language. Upgrades are pretty smooth because the language doesn't change much. The Go team only officially supports the two most recent major versions (currently 1.8 and 1.9). Older versions do not receive security updates. It's up to you, but I think it's ok to drop support for 1.7 and older.

@ryboe
Copy link
Contributor Author

ryboe commented Jan 5, 2018

ping @nsf. Any changes requested?

@nsf
Copy link
Owner

nsf commented Jan 5, 2018

Sorry, I completely forgot about the pull request. I'll merge it sometime this weekend.

@nsf nsf merged commit e4cc1d2 into nsf:master Jan 6, 2018
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.

None yet

2 participants