Skip to content

Commit

Permalink
added missing error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
10d9e committed Jun 9, 2023
1 parent c8f8901 commit c9ab0a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions whypfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,5 +813,8 @@ func (p *Node) AddPinDirectory(ctx context.Context, path string) (ipld.Node, err
log.Println(err)
}
node, err := dirNode.GetNode()
if err != nil {
return nil, err
}
return node, nil
}

0 comments on commit c9ab0a1

Please sign in to comment.