Skip to content

Commit

Permalink
Fix nil pointer dereference
Browse files Browse the repository at this point in the history
closes #300
  • Loading branch information
corny committed Sep 4, 2023
1 parent 978570b commit 14b47a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ func (c *Client) downloadChunk(req *http.Request, chunk *chunk) error {

resp, err := c.httpDo(req)
if err != nil {
return ErrUnexpectedStatusCode(resp.StatusCode)
return err
}
defer resp.Body.Close()

Expand Down

0 comments on commit 14b47a0

Please sign in to comment.