fix inef assignments: fix some unused assignments
License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
parent
6d3edbb4a5
commit
7cd2d3d0e1
|
@ -122,7 +122,7 @@ func TestLoadJSON(t *testing.T) {
|
||||||
json.Unmarshal(ccfgTestJSON, j)
|
json.Unmarshal(ccfgTestJSON, j)
|
||||||
j.ReplicationFactor = 0
|
j.ReplicationFactor = 0
|
||||||
tst, _ = json.Marshal(j)
|
tst, _ = json.Marshal(j)
|
||||||
err = cfg.LoadJSON(tst)
|
cfg.LoadJSON(tst)
|
||||||
if cfg.ReplicationFactor != -1 {
|
if cfg.ReplicationFactor != -1 {
|
||||||
t.Error("expected default replication factor")
|
t.Error("expected default replication factor")
|
||||||
}
|
}
|
||||||
|
|
|
@ -375,7 +375,7 @@ func TestProxyAdd(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
url := fmt.Sprintf("%s/add?"+urlQueries[i], proxyURL(ipfs))
|
url := fmt.Sprintf("%s/add?"+urlQueries[i], proxyURL(ipfs))
|
||||||
req, err := http.NewRequest("POST", url, body)
|
req, _ := http.NewRequest("POST", url, body)
|
||||||
req.Header.Set("Content-Type", w.FormDataContentType())
|
req.Header.Set("Content-Type", w.FormDataContentType())
|
||||||
reqs[i] = req
|
reqs[i] = req
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user