diff --git a/progress.go b/progress.go index dfd35e7..cc4e3e1 100644 --- a/progress.go +++ b/progress.go @@ -351,7 +351,7 @@ } func (s *pState) flush(cw *cwriter.Writer, height int) error { - wg := new(sync.WaitGroup) + var wg sync.WaitGroup defer wg.Wait() // waiting for all s.hm.push to complete var popCount int