Commit ccae0acd authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

u.Hash - error

the u.Hash error can be safely ignored (panic) because multihash
only fails from the selection of hash function. If the fn + length
are valid, it won't error.

cc @whyrusleeping
parent ea0de6fe
......@@ -130,7 +130,7 @@ func (n *Node) Multihash() (mh.Multihash, error) {
return nil, err
}
return u.Hash(b)
return u.Hash(b), nil
}
// Key returns the Multihash as a key, for maps.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment