cmd/vet: `s = append(s)` should warn #15117
Closed
Labels
Milestone
Comments
/cc @robpike |
I don't think govet should warn about no-ops. Golint perhaps, but how often
does it happen in practice?
|
Agree. See cmd/vet/README for adoption criteria. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
go version
)?go env
)?I accidently wrote something along the lines of the following code. It surprised me that vet didn't report his as an error.
https://play.golang.org/p/xxFTTzhl14
I expect vet to report this as an error. This code is a complete noop as far as I know.
The text was updated successfully, but these errors were encountered: