chore: coding style (#2120)

This commit is contained in:
Kevin Wan
2022-07-10 11:05:21 +08:00
committed by GitHub
parent 96acf1f5a6
commit 1c09db6d5d
11 changed files with 24 additions and 23 deletions

View File

@@ -20,7 +20,7 @@ func goModTidy(dir string) int {
return execCommand(dir, "go mod tidy", prepareGoProxyEnv()...)
}
func execCommand(dir string, arg string, envArgs ...string) int {
func execCommand(dir, arg string, envArgs ...string) int {
cmd := exec.Command("sh", "-c", arg)
if runtime.GOOS == vars.OsWindows {
cmd = exec.Command("cmd.exe", "/c", arg)