diff --git a/progress.go b/progress.go index f70e2aa..378b9ca 100644 --- a/progress.go +++ b/progress.go @@ -367,7 +367,7 @@ s.pool = append(s.pool, b) } - switch l := len(s.pool); l { + switch len(s.pool) { case 0: if s.heapUpdated { s.updateSyncMatrix()