diff options
author | 2024-10-04 01:22:26 +0800 | |
---|---|---|
committer | 2024-10-03 17:22:26 +0000 | |
commit | 23b6d2cc64dbb52a43a2961c533cc44b769b9fc0 (patch) | |
tree | 66d853db89834f5b6806dd30c2261da0564f2496 | |
parent | [docs] Update smtp docs to mention starttls + port 587 (#3378) (diff) | |
download | gotosocial-23b6d2cc64dbb52a43a2961c533cc44b769b9fc0.tar.xz |
fix: fix slice init length (#3382)
-rw-r--r-- | testrig/testmodels.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go index 47457393a..ae69b9e81 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -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) |