-
Notifications
You must be signed in to change notification settings - Fork 59
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
False positive on empty ctx.Done() #97
Comments
@igorfraa - acknowledged. Thanks for reporting this issue. NilAway currently does not have support modeled for the |
This is not about |
Filippo is right, read from a nil channel doesn't panic by design and so should not be reported by NilAway. And the empty context is the best example of when it is an intended behavior. |
looks like a specific case of a more general "nil channel inside select" #98 I will close this one in favour of !98 and will try to look into that |
Per convention,
ctx.Done()
is normally nil for an empty contextexample valid code:
nilaway output:
The text was updated successfully, but these errors were encountered: