Skip to content

Commit 11171b0

Browse files
committed
Avoid an useless append
1 parent 58891ba commit 11171b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/sshcommand/sshcommand.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ func (c *Command) applyDefaults() {
5151
func (c *Command) Slice() []string {
5252
c.applyDefaults()
5353

54-
slice := []string{}
55-
56-
slice = append(slice, "ssh")
54+
slice := []string{"ssh"}
5755

5856
if c.EnableSSHKeyForwarding {
5957
slice = append(slice, "-A")

0 commit comments

Comments
 (0)