mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-25 23:21:54 +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
|
||||
}
|
||||
|
||||
if next == is[0] {
|
||||
sig <- nd
|
||||
next++
|
||||
for ; next < len(nodes) && nodes[next] != nil; next++ {
|
||||
sig <- nodes[next]
|
||||
}
|
||||
for ; next < len(nodes) && nodes[next] != nil; next++ {
|
||||
sig <- nodes[next]
|
||||
}
|
||||
}
|
||||
if next < len(nodes) {
|
||||
|
Reference in New Issue
Block a user