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:
terencechain
2023-10-23 09:36:11 -07:00
committed by GitHub
parent 9c938d354d
commit 76fec1799e
15 changed files with 20 additions and 20 deletions

View File

@@ -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())