From d46578ce0bc0e39d9e8faa8683b99e0875e15b9a Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Wed, 19 May 2021 19:25:06 +0300 Subject: [PATCH] [#46] authmate: Remove excessive definitions of capacities from slice creations Signed-off-by: Angira Kekteeva --- cmd/authmate/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/authmate/main.go b/cmd/authmate/main.go index 982c3afef..ec38e0654 100644 --- a/cmd/authmate/main.go +++ b/cmd/authmate/main.go @@ -127,7 +127,7 @@ func appCommands() []*cli.Command { func generateGatesKeys(count int) ([]hcs.Credentials, error) { var ( err error - res = make([]hcs.Credentials, count, count) + res = make([]hcs.Credentials, count) ) for i := 0; i < count; i++ { @@ -163,7 +163,7 @@ func generateKeys() *cli.Command { log.Info("generated x25519 keys") - gatesKeys := make([]gateKey, len(csl), len(csl)) + gatesKeys := make([]gateKey, len(csl)) for i, cs := range csl { privateKey, publicKey := cs.PrivateKey().String(), cs.PublicKey().String() gatesKeys[i] = gateKey{PrivateKey: privateKey, PublicKey: publicKey}