Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
amad committed Feb 26, 2020
1 parent c6e1b13 commit f1c14da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmdoptions/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func TestOutput(t *testing.T) {
oldArgs := os.Args
os.Args = tc.args

InstallFlags("version", os.Stdout)
_, _ = InstallFlags("version", os.Stdout)

os.Args = oldArgs

Expand Down
11 changes: 9 additions & 2 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"io"
"log"
"sync"
"time"

Expand Down Expand Up @@ -150,9 +151,15 @@ func (r *Runner) getPoolsize(ts *core.Testsuite) int {
}

func (r *Runner) printfOut(msg string, params ...interface{}) {
r.stdout.WriteString(fmt.Sprintf(msg, params...) + "\n")
_, err := r.stdout.WriteString(fmt.Sprintf(msg, params...) + "\n")
if err != nil {
log.Fatal(err)
}
}

func (r *Runner) printfErrOut(msg string, params ...interface{}) {
r.stderr.WriteString(fmt.Sprintf(msg, params...) + "\n")
_, err := r.stderr.WriteString(fmt.Sprintf(msg, params...) + "\n")
if err != nil {
log.Fatal(err)
}
}

0 comments on commit f1c14da

Please sign in to comment.