🧱 Chunk is a download manager for slow and unstable servers
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #53 from its-josh4/patch-log

fix error wrapping nil error

authored by

Eduardo Cuducos and committed by
GitHub
147506ba 7d5426cc

+1 -1
+1 -1
downloader.go
··· 128 128 } 129 129 defer resp.Body.Close() 130 130 if resp.StatusCode != http.StatusPartialContent && resp.StatusCode != http.StatusOK { 131 - return nil, fmt.Errorf("got http response %s from %s: %w", resp.Status, u, err) 131 + return nil, fmt.Errorf("got http response %s from %s", resp.Status, u) 132 132 } 133 133 var b bytes.Buffer 134 134 _, err = b.ReadFrom(resp.Body)