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:
@ -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
|
||||
|
Reference in New Issue
Block a user