We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package foo func _() { var x []int len := func([]int) int { return 10 } if x == nil || len(x) == 0 { } }
triggers S1009:
bar.go:7:5: should omit nil check; len() for nil slices is defined as zero (S1009)
It shouldn't.
The text was updated successfully, but these errors were encountered:
e3efe9b
S1009: handle shadowed len
d5a644f
Closes gh-1181 (cherry picked from commit e3efe9b)
ce49d7b
No branches or pull requests
triggers S1009:
It shouldn't.
The text was updated successfully, but these errors were encountered: