Skip to content

Commit

Permalink
drop external dep and update copy function
Browse files Browse the repository at this point in the history
  • Loading branch information
kjzz committed Sep 6, 2018
1 parent 83a3ec9 commit 16a5e8e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions daghelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 16a5e8e

Please sign in to comment.