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
This will panic when resp == nil which is ifferr != nil. Can go vet have a heuristic for when resp.Body.Close() is invoked in a path where neither of the following are checked:
resp != nil
err != nil
I don't know the specifics of how cmd/vet works but I was a little surprised when no static analysis tools caught this one so far (obviously points to lack of testing on my end as well, however I feel like static analysis could've found it earlier).