[#46] authmate: Remove excessive definitions of capacities from slice creations

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2021-05-19 19:25:06 +03:00
parent 036d4c9cea
commit d46578ce0b

View file

@ -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}