diff --git a/bar.go b/bar.go index dfdd18e..3fedc56 100644 --- a/bar.go +++ b/bar.go @@ -279,7 +279,7 @@ done := make(chan struct{}) select { case b.operateState <- func(s *bState) { - if s.completed == true { + if s.completed { close(done) return }