Skip to content

Commit

Permalink
fix: return ErrLinkNotFound when the _link_ isn't found
Browse files Browse the repository at this point in the history
ipld.ErrNotFound should only be used when the underlying node isn't found
  • Loading branch information
Stebalien committed Jul 26, 2019
1 parent ea4cf39 commit 9312398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (n *ProtoNode) RemoveNodeLink(name string) error {
}

if !found {
return ipld.ErrNotFound
return ErrLinkNotFound
}

n.links = ref
Expand Down

0 comments on commit 9312398

Please sign in to comment.