mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-03 13:00:37 +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 nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return u.ErrNotFound
|
return fmt.Errorf("merkledag: %s not found", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy returns a copy of the node.
|
// Copy returns a copy of the node.
|
||||||
|
Reference in New Issue
Block a user