Skip to content

Commit

Permalink
Fix golangci-lint warnings since it is still used in make lint (#711)
Browse files Browse the repository at this point in the history
Running `make lint` locally highlights these lint issues which is
slightly annoying. Explicitly ignore the error to silence the linter.
  • Loading branch information
masih authored Oct 8, 2024
1 parent f638813 commit 872e4f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/signing/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
Expand All @@ -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)
}
Expand Down

0 comments on commit 872e4f1

Please sign in to comment.