You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, https://go-review.googlesource.com/c/go/+/194638 fixes a nasty bug where ParseExprFrom would completely ignore errors under some scenarios, because the author forgot to name the result parameter err error.
This would be a tricky rule to write, but if done well, it could catch nasty hidden bugs.
Filing this issue to keep track of past examples that have been fixed, as well as false positives we should look out for.
The text was updated successfully, but these errors were encountered:
dominikh
changed the title
catch when a defer stores an error into the ether
staticcheck: catch when a defer stores an error into the ether
Sep 15, 2019
For example, https://go-review.googlesource.com/c/go/+/194638 fixes a nasty bug where
ParseExprFrom
would completely ignore errors under some scenarios, because the author forgot to name the result parametererr error
.This would be a tricky rule to write, but if done well, it could catch nasty hidden bugs.
Filing this issue to keep track of past examples that have been fixed, as well as false positives we should look out for.
The text was updated successfully, but these errors were encountered: