mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
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:
parent
6d19de044a
commit
dcfdb3d5d5
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue