From df6508828615f82b54b91768d6245da560b8e35d Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Sat, 26 Mar 2022 16:10:35 +0900 Subject: [PATCH] remove redundant if statement --- check/utils.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/check/utils.go b/check/utils.go index ed65ac3..ae92001 100644 --- a/check/utils.go +++ b/check/utils.go @@ -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") {