1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 09:59:13 +08:00

fix(merkledag) return static error

This commit is contained in:
Brian Tiger Chow
2014-10-28 16:10:17 -07:00
parent edbaa3f664
commit 9a9dc926b5

View File

@ -104,7 +104,7 @@ func (n *Node) RemoveNodeLink(name string) error {
return nil
}
}
return fmt.Errorf("merkledag: %s not found", name)
return ErrNotFound
}
// Copy returns a copy of the node.