Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Vaumoron <dvaumoron@gmail.com>
  • Loading branch information
dvaumoron committed Jun 26, 2024
1 parent 368ae80 commit 0c4276b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions versionmanager/proxy/light/light.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ import (
)

func Exec(execName string) {
cmdArgs := make([]string, 0, len(os.Args)+1)
cmdArgs = append(cmdArgs, cmdconst.CallSubCmd, execName)
cmdArgs = append(cmdArgs, os.Args[1:]...)
cmdArgs := make([]string, len(os.Args)+1)
cmdArgs[0], cmdArgs[1] = cmdconst.CallSubCmd, execName
copy(cmdArgs[2:], os.Args[1:])

// proxy to selected version
cmd := exec.Command(cmdconst.TenvName, cmdArgs...)
cmd := exec.Command(cmdconst.TenvName, cmdArgs...) //nolint
cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout
err := cmd.Start()
Expand Down

0 comments on commit 0c4276b

Please sign in to comment.