mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 14:29:05 +08:00
remove redundant if statement
This commit is contained in:
@@ -361,10 +361,6 @@ func GoTool(dir string, filenames, command []string) (float64, []FileSummary, er
|
||||
params = append(params, dir+"/...")
|
||||
}
|
||||
|
||||
if strings.Contains(enabledCheck, "staticcheck") {
|
||||
params[len(params)-1] = "./..."
|
||||
}
|
||||
|
||||
cmd := exec.Command(command[0], params...)
|
||||
|
||||
if strings.Contains(enabledCheck, "staticcheck") {
|
||||
|
||||
Reference in New Issue
Block a user