Codebase list golang-github-vbauerster-mpb / dba9b57
simplify bool check Vladimir Bauer 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
278278 done := make(chan struct{})
279279 select {
280280 case b.operateState <- func(s *bState) {
281 if s.completed == true {
281 if s.completed {
282282 close(done)
283283 return
284284 }