This repository has been 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 #2
Comments
Hello @sni and thank you for your interest! |
no worries, just wanted to make it easier to reproduce. Yours is definitly better. |
thanks for fixing this so quick |
A really dumb example, but I assume @sni's issue is the same as this one? ctxValue := ctx.Value("foo")
if ctxValue == nil {
panic("no foo!")
}
otherCtx, ok := ctxValue.(*context.Context)
if !ok {
panic("no ctx!")
}
return
Where |
Oh perfect, thanks! |
This was referenced Mar 15, 2021
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ifshort complains about a waitgroup beeing used only once but in fact it is used multiple times afterwards:
Original code can be found here:
https://github.com/sni/lmd/blob/f6eefbe1af8012d29998e122441c3c705d648a3d/lmd/listener.go#L204
The text was updated successfully, but these errors were encountered: