Skip to content

Commit

Permalink
fix: fixed linter errors in dsl/client
Browse files Browse the repository at this point in the history
  • Loading branch information
antklim committed Jul 30, 2021
1 parent d88f9c3 commit 60ddda1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dsl/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ func (p *PactClient) VerifyProvider(request types.VerifyRequest) ([]types.Provid
// Each pact is verified by line, and the results (as JSON) sent to stdout.
// See https://github.com/pact-foundation/pact-go/issues/88#issuecomment-404686337
stdOutScanner := bufio.NewScanner(stdOutPipe)
wg.Add(1)
go func() {
wg.Add(1)
defer wg.Done()
stdOutBuf := make([]byte, bufio.MaxScanTokenSize)
stdOutScanner.Buffer(stdOutBuf, 64*1024*1024)
Expand All @@ -213,13 +213,12 @@ func (p *PactClient) VerifyProvider(request types.VerifyRequest) ([]types.Provid

// Scrape errors
stdErrScanner := bufio.NewScanner(stdErrPipe)
wg.Add(1)
go func() {
wg.Add(1)
defer wg.Done()
for stdErrScanner.Scan() {
stdErr.WriteString(fmt.Sprintf("%s\n", stdErrScanner.Text()))
}

}()

err = cmd.Start()
Expand Down

0 comments on commit 60ddda1

Please sign in to comment.