Skip to content

Commit

Permalink
fix: fix slice init length (#3382)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuishuang authored Oct 3, 2024
1 parent 3f7dc10 commit 23b6d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testrig/testmodels.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
}

if diff := len(accountsSorted) - len(preserializedKeys); diff > 0 {
keyStrings := make([]string, diff)
keyStrings := make([]string, 0, diff)
for i := 0; i < diff; i++ {
priv, _ := rsa.GenerateKey(rand.Reader, 2048)
key, _ := x509.MarshalPKCS8PrivateKey(priv)
Expand Down

0 comments on commit 23b6d2c

Please sign in to comment.