From 872e4f1cc5ad482054bec614c3aa96e45b2a12c3 Mon Sep 17 00:00:00 2001 From: "Masih H. Derkani" Date: Tue, 8 Oct 2024 18:26:19 +0100 Subject: [PATCH] Fix golangci-lint warnings since it is still used in `make lint` (#711) Running `make lint` locally highlights these lint issues which is slightly annoying. Explicitly ignore the error to silence the linter. --- sim/signing/fake.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/signing/fake.go b/sim/signing/fake.go index 2d107e89..9c8e12d0 100644 --- a/sim/signing/fake.go +++ b/sim/signing/fake.go @@ -141,7 +141,7 @@ func (f *fakeAggregate) Aggregate(signerMask []int, sigs [][]byte) ([]byte, erro if bit >= len(f.keys) { return nil, fmt.Errorf("signer %d out of range", bit) } - binary.Write(hasher, binary.BigEndian, int64(bit)) + _ = binary.Write(hasher, binary.BigEndian, int64(bit)) hasher.Write(f.keys[bit]) hasher.Write(sigs[i]) } @@ -157,7 +157,7 @@ func (f *fakeAggregate) VerifyAggregate(signerMask []int, payload []byte, aggSig if err != nil { return err } - binary.Write(hasher, binary.BigEndian, int64(bit)) + _ = binary.Write(hasher, binary.BigEndian, int64(bit)) hasher.Write(signer) hasher.Write(sig) }