Skip to content

Commit 28e1372

Browse files
committed
Optimization of an useless loop
1 parent f156ac9 commit 28e1372

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmd/sshproxy/sshproxy.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,7 @@ func mainExitCode() int {
460460
for fromCmd, translateCmdConf := range config.TranslateCommands {
461461
if doCmd == fromCmd {
462462
log.Debugf("translateCmdConf = %+v", translateCmdConf)
463-
for _, sshArg := range translateCmdConf.SSHArgs {
464-
sshArgs = append(sshArgs, sshArg)
465-
}
463+
sshArgs = append(sshArgs, translateCmdConf.SSHArgs...)
466464
sshArgs = append(sshArgs, "--", host, translateCmdConf.Command)
467465
if config.Dump != "" && translateCmdConf.DisableDump {
468466
config.Dump = "etcd"

0 commit comments

Comments
 (0)