From 60ddda187f5649abd511980f063773dba7d2dc59 Mon Sep 17 00:00:00 2001 From: antklim Date: Fri, 30 Jul 2021 17:09:11 +1000 Subject: [PATCH] fix: fixed linter errors in dsl/client --- dsl/client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dsl/client.go b/dsl/client.go index 67882d64c..42cb4ebfb 100644 --- a/dsl/client.go +++ b/dsl/client.go @@ -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) @@ -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()