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
defer
It would be great if the tool could also check cases where errors are wrapped using defer, such as with golang.org/x/pkgsite/internal/derrors.Wrap.
func wrap(errp *error) {} func f() (err error) { defer wrap(&err) err = do() if err != nil { return nil // want "error is not nil" } return nil }
Would it be possible to add support for this scenario?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be great if the tool could also check cases where errors are wrapped using
defer
, such as with golang.org/x/pkgsite/internal/derrors.Wrap.Would it be possible to add support for this scenario?
The text was updated successfully, but these errors were encountered: