mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Replace Empty Slice Literals with Nil Slices (#13093)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
@@ -94,7 +94,7 @@ func TestPublicKey_Aggregate(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPublicKey_Aggregation_NoCorruption(t *testing.T) {
|
||||
pubkeys := []common.PublicKey{}
|
||||
var pubkeys []common.PublicKey
|
||||
for i := 0; i < 100; i++ {
|
||||
priv, err := blst.RandKey()
|
||||
require.NoError(t, err)
|
||||
@@ -102,7 +102,7 @@ func TestPublicKey_Aggregation_NoCorruption(t *testing.T) {
|
||||
pubkeys = append(pubkeys, pubkey)
|
||||
}
|
||||
|
||||
compressedKeys := [][]byte{}
|
||||
var compressedKeys [][]byte
|
||||
// Fill up the cache
|
||||
for _, pkey := range pubkeys {
|
||||
_, err := blst.PublicKeyFromBytes(pkey.Marshal())
|
||||
|
||||
Reference in New Issue
Block a user