You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first case is its own error result, recursively. The second one is the error result from hash.Hash.Write which is documented to never return an error.
There are no cases where Hash would fail, so don't return an error
value. Simplifies every caller, as can be seen from the test changes.
Fixescosmos#757
Node.hashWithCount
can only return errors in two cases:iavl/node.go
Lines 336 to 343 in 64ffc27
The first case is its own error result, recursively. The second one is the error result from
hash.Hash.Write
which is documented to never return an error.CC @odeke-em
The text was updated successfully, but these errors were encountered: