Skip to content

Commit c4db1cc

Browse files
authored
Merge pull request #500 from sieben/useless_append
Avoid an useless append
2 parents 84c5486 + 11171b0 commit c4db1cc

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)