remove redundant if statement

This commit is contained in:
Shawn Smith
2022-03-26 16:10:35 +09:00
parent 44923ab6a2
commit df65088286

View File

@@ -361,10 +361,6 @@ func GoTool(dir string, filenames, command []string) (float64, []FileSummary, er
params = append(params, dir+"/...") params = append(params, dir+"/...")
} }
if strings.Contains(enabledCheck, "staticcheck") {
params[len(params)-1] = "./..."
}
cmd := exec.Command(command[0], params...) cmd := exec.Command(command[0], params...)
if strings.Contains(enabledCheck, "staticcheck") { if strings.Contains(enabledCheck, "staticcheck") {