Skip to content

Commit

Permalink
fix comment as suggested by @tritone
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuscscp committed Sep 19, 2022
1 parent 78006b1 commit a247f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gensupport/send.go
Expand Up @@ -117,8 +117,8 @@ func sendAndRetry(ctx context.Context, client *http.Client, req *http.Request, r
for {
select {
case <-ctx.Done():
// If we got an error, and the context has been canceled,
// the context's error is probably more useful.
// If we got an error and the context has been canceled, return an error acknowledging
// both the context cancelation and the service error.
if err != nil {
return resp, wrappedCallErr{ctx.Err(), err}
}
Expand Down

0 comments on commit a247f2d

Please sign in to comment.