mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +08:00
refactor(merkledag) use one-off error
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user