1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-15 07:58:15 +08:00

apply the megacheck tool to improve code quality

License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
This commit is contained in:
zramsay
2017-05-31 16:56:11 -04:00
parent f9ba45d2eb
commit c5df8f0796
76 changed files with 179 additions and 377 deletions

View File

@ -120,14 +120,10 @@ func TestAddGCLive(t *testing.T) {
pipew.Close()
// receive next object from adder
select {
case o := <-out:
addedHashes[o.(*AddedObject).Hash] = struct{}{}
}
o := <-out
addedHashes[o.(*AddedObject).Hash] = struct{}{}
select {
case <-gcstarted:
}
<-gcstarted
for r := range gcout {
if r.Error != nil {
@ -197,7 +193,7 @@ func testAddWPosInfo(t *testing.T, rawLeaves bool) {
t.Fatal(err)
}
}()
for _ = range adder.Out {
for range adder.Out {
}
exp := 0