swarm/api/http: fix go vet issue on Go 1.8

This commit is contained in:
Péter Szilágyi 2017-02-17 11:48:26 +02:00
parent bdef758d5c
commit e94dfb78f8
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D

View File

@ -113,6 +113,9 @@ func TestBzzrGetPath(t *testing.T) {
url += common.ToHex(key[0])[2:] + "/" + k[1:] + "?content_type=text/plain" url += common.ToHex(key[0])[2:] + "/" + k[1:] + "?content_type=text/plain"
} }
resp, err = http.Get(url) resp, err = http.Get(url)
if err != nil {
t.Fatalf("Request failed: %v", err)
}
defer resp.Body.Close() defer resp.Body.Close()
respbody, err = ioutil.ReadAll(resp.Body) respbody, err = ioutil.ReadAll(resp.Body)