@cryptotaxi247 / kubo / commits / 40f40b5a6

fix golang-ci lint nits

This commit was moved from ipfs/go-ipfs-http-client@ccf20b0ef5f440aca754f94325fca7202275ba8b

Steven Allen committed Mar 26, 2019 at 17:04 UTC 40f40b5a6593af189b81f43e393316b381bd541d
2 files changed +3 -3
client/httpapi/apifile.go
+1 -1
@@ -56,7 +56,7 @@ type apiFile struct {
56
57 func (f *apiFile) reset() error {
58 if f.r != nil {
59 - f.r.Cancel()
59 + _ = f.r.Cancel()
60 }
61 req := f.core.request("cat", f.path.String())
62 if f.at != 0 {
client/httpapi/response.go
+2 -2
@@ -147,8 +147,8 @@ func (r *Request) Send(c *http.Client) (*Response, error) {
147 nresp.Output = nil
148
149 // drain body and close
150 - io.Copy(ioutil.Discard, resp.Body)
151 - resp.Body.Close()
150 + _, _ = io.Copy(ioutil.Discard, resp.Body)
151 + _ = resp.Body.Close()
152 }
153
154 return nresp, nil