all: fix no-op append calls (#6360)

Append call in form of `append(s)` has no effect,
it just returns `s`. Sometimes such invocation is a sign
of a programming error, so it's better to remove these.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
This commit is contained in:
Iskander (Alex) Sharipov 2019-03-14 23:40:30 +03:00 committed by Brian Kassouf
parent 6d19de044a
commit dcfdb3d5d5
2 changed files with 4 additions and 4 deletions

View file

@ -26,13 +26,13 @@ func Backend() *backend {
"login",
},
},
Paths: append([]*framework.Path{
Paths: []*framework.Path{
pathConfig(&b),
pathLogin(&b),
pathListCerts(&b),
pathCerts(&b),
pathCRLs(&b),
}),
},
AuthRenew: b.pathLoginRenew,
Invalidate: b.invalidate,
BackendType: logical.TypeCredential,

View file

@ -467,11 +467,11 @@ func (c *SSHCommand) handleTypeCA(username, ip, port string, sshArgs []string) i
return 2
}
args := append([]string{
args := []string{
"-i", c.flagPrivateKeyPath,
"-i", signedPublicKeyPath,
"-o StrictHostKeyChecking=" + strictHostKeyChecking,
})
}
if userKnownHostsFile != "" {
args = append(args,