Skip to content

Commit f354769

Browse files
authored
Merge pull request #45 from cap10morgan/patch-1
Return CBOR decode error in Find
2 parents 6f1ef19 + cfefbad commit f354769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hamt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (n *Node) Find(ctx context.Context, k string, out interface{}) error {
7979
}
8080

8181
if err := cbor.DecodeInto(kv.Value.Raw, out); err != nil {
82-
xerrors.Errorf("cbor decoding value: %w", err)
82+
return xerrors.Errorf("cbor decoding value: %w", err)
8383
}
8484

8585
return nil

0 commit comments

Comments
 (0)