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
+1
-1
bar.go
less
more
278
278
done := make(chan struct{})
279
279
select {
280
280
case b.operateState <- func(s *bState) {
281
if s.completed == true {
281
if s.completed {
282
282
close(done)
283
283
return
284
284
}