Skip to content

Commit 28eb72a

Browse files
committed
Add missing error check in unixfs writeDir.
1 parent 4b3d77c commit 28eb72a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unixfs/write.go

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ func writeDir(ctx context.Context, dag ipld.DAGService, path string, node ipld.N
6363
}
6464

6565
links, err := dir.Links(ctx)
66+
if err != nil {
67+
return err
68+
}
69+
6670
for _, link := range links {
6771
subnode, err := link.GetNode(ctx, dag)
6872
if err != nil {

0 commit comments

Comments
 (0)