mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 23:53:19 +08:00
cleanup from CR
This commit is contained in:
@ -331,12 +331,8 @@ func (ds *dagService) GetDAG(ctx context.Context, root *Node) <-chan *Node {
|
|||||||
nodes[i] = nd
|
nodes[i] = nd
|
||||||
}
|
}
|
||||||
|
|
||||||
if next == is[0] {
|
for ; next < len(nodes) && nodes[next] != nil; next++ {
|
||||||
sig <- nd
|
sig <- nodes[next]
|
||||||
next++
|
|
||||||
for ; next < len(nodes) && nodes[next] != nil; next++ {
|
|
||||||
sig <- nodes[next]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if next < len(nodes) {
|
if next < len(nodes) {
|
||||||
|
Reference in New Issue
Block a user