Skip to content

Commit

Permalink
Don't combine stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed May 2, 2020
1 parent 71ada44 commit 5cca92b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/golangcilint/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func (r *Runner) ListLinters() []Linter {
// And then fetch linters from Report.Linters.
return []Linter{}
}

func (r *Runner) GetVersion() string {
version, err := r.execute("version")
if err != nil {
Expand All @@ -76,5 +77,5 @@ func (r *Runner) GetVersion() string {
func (r *Runner) execute(args ...string) ([]byte, error) {
cmd := exec.Command(r.Executable, args...)
cmd.Dir = r.dir
return cmd.CombinedOutput()
return cmd.Output()
}

0 comments on commit 5cca92b

Please sign in to comment.