diff --git a/progress.go b/progress.go index e7dc45f..3b89094 100644 --- a/progress.go +++ b/progress.go @@ -379,11 +379,7 @@ pool = append(pool, b) } - switch len(pool) { - case 0: - case 1: - heap.Push(&s.bHeap, pool[0]) - default: + if len(pool) != 0 { wg.Add(1) go func() { for _, b := range pool {