mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Fix a bunch of deepsource warnings (#11814)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user