Skip to content

Commit b7c5e90

Browse files
committed
fix G204
1 parent cdf106a commit b7c5e90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/testshared/testshared.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ func (r *LintRunner) RunCommand(command string, args ...string) *RunResult {
100100
r.log.Infof("ran [../golangci-lint %s] in %s", strings.Join(runArgs, " "), time.Since(startedAt))
101101
}(time.Now())
102102

103-
cmd := exec.Command(filepath.Join("..", "golangci-lint"), runArgs...)
103+
binPath := filepath.Join("..", "golangci-lint")
104+
cmd := exec.Command(binPath, runArgs...)
104105
cmd.Env = append(os.Environ(), r.env...)
105106
out, err := cmd.CombinedOutput()
106107
if err != nil {

0 commit comments

Comments
 (0)