Codebase list golang-github-vbauerster-mpb / 673e2a9
minor: prefer value var wg Vladimir Bauer 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
350350 }
351351
352352 func (s *pState) flush(cw *cwriter.Writer, height int) error {
353 wg := new(sync.WaitGroup)
353 var wg sync.WaitGroup
354354 defer wg.Wait() // waiting for all s.hm.push to complete
355355
356356 var popCount int