From 88e90aaa44fbcca7c2505bade05db3f1035492bc Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Sat, 9 Dec 2023 18:21:22 +0900 Subject: [PATCH] fix lints --- chain/exchange/protocol_encoding.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/exchange/protocol_encoding.go b/chain/exchange/protocol_encoding.go index 7df00a639..ca15831d6 100644 --- a/chain/exchange/protocol_encoding.go +++ b/chain/exchange/protocol_encoding.go @@ -95,7 +95,7 @@ func (t *messageIndices) UnmarshalCBOR(r io.Reader) (err error) { if maj != cbg.MajUnsignedInt { return fmt.Errorf("wrong type for uint64 field") } - t.v[i] = uint64(extra) + t.v[i] = extra } return nil @@ -117,7 +117,7 @@ func (t *messageIndices) MarshalCBOR(w io.Writer) error { return err } for _, v := range t.v { - if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(v)); err != nil { + if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, v); err != nil { return err } }