mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-02 14:58:03 +08:00
refactor(merkledag) use one-off error
This commit is contained in:
parent
1f9541d29b
commit
04e270a91e
@ -103,7 +103,7 @@ func (n *Node) RemoveNodeLink(name string) error {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
return u.ErrNotFound
|
||||
return fmt.Errorf("merkledag: %s not found", name)
|
||||
}
|
||||
|
||||
// Copy returns a copy of the node.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user