Fix a bunch of deepsource warnings (#11814)

This commit is contained in:
Patrice Vignola
2022-12-22 01:20:10 -08:00
committed by GitHub
parent 77a9dca9eb
commit 83f48350b2
73 changed files with 197 additions and 197 deletions

View File

@@ -88,7 +88,7 @@ func TestSerialize(t *testing.T) {
func TestZeroKey(t *testing.T) {
// Is Zero
zKey := [32]byte{}
var zKey [32]byte
assert.Equal(t, true, blst.IsZero(zKey[:]))
// Is Not Zero

View File

@@ -703,7 +703,7 @@ func NewInvalidSignatureSet(t *testing.T, msgBody string, num int, throwErr bool
}
func messageBytes(message string) [32]byte {
bytes := [32]byte{}
var bytes [32]byte
copy(bytes[:], []byte(message))
return bytes
}