This repository was archived by the owner on Jul 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
false positive #6
Comments
I have a similar case: ch := c.responses[id]
if ch == nil {
c.m.Unlock()
c.close(errors.WithStack(fmt.Errorf("no subscriber for ID %d", id)))
return
}
delete(c.responses, id)
c.m.Unlock()
ch <- resp |
and I think I found another one; package main
import "fmt"
func main() {
name := "Jacob"
_ = "random data" + name // <- this usage is not being seen
if false {
fmt.Printf("my name is %s", name)
}
} produces this error (when running through
|
Thanks for your interest! @jacobbogdanov The first false positive you reported has already been fixed (113a74d) and released in version 1.0.1. Please stay tuned for golanci-lint 1.36.1. |
Just ran into the second case as well. Thanks for the fix! Hope to see it added to golanglinter soon 😄 |
Sorry for not releasing it for so long. |
This was referenced Mar 15, 2021
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
the following code
produces this error (when running through
golangci-lint
version 1.36.0);The text was updated successfully, but these errors were encountered: