diff --git a/daghelpers.go b/daghelpers.go index 6536bb7..8219306 100644 --- a/daghelpers.go +++ b/daghelpers.go @@ -95,13 +95,6 @@ func Copy(ctx context.Context, from, to DAGService, root *cid.Cid) error { return err } links := node.Links() - if len(links) == 0 { - err := to.Add(ctx, node) - if err != nil { - return err - } - return nil - } for _, link := range links { err := Copy(ctx, from, to, link.Cid) if err != nil {