Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: nil check against the embedded
http.Response
(#469)
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