mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-07 08:54:39 +01:00
fix: fix slice init length (#3382)
This commit is contained in:
parent
3f7dc10449
commit
23b6d2cc64
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user