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

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
remotes/KirillovDenis/bugfix/681-fix_acl_parsing
Angira Kekteeva 2021-05-19 19:25:06 +03:00
parent 036d4c9cea
commit d46578ce0b
1 changed files with 2 additions and 2 deletions

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}