Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do nil check against the embedded http.Response
The local *Response should never be nil, but the embedded *http.Response might be nil, for example when the context is cancelled. Can be reproduced with: go test -run ^TestWaitFor/fail_with_canceled_context$ -count 100 github.com/hetznercloud/hcloud-go/v2/hcloud
- Loading branch information