refactoring: ch to update
Vladimir Bauer
3 years ago
1 changed file(s) with
3 addition(s)
and
4 deletion(s)
.
Raw diff
Collapse all
Expand all
+3
-4
progress.go
less
more
265
265
err = e
266
266
}
267
267
case <-p.done:
268
ch := make(chan bool)
268
update := make(chan bool)
269
269
for err == nil {
270
s.hm.state(ch)
271
isUnrenderedState := <-ch
272
if isUnrenderedState {
270
s.hm.state(update)
271
if <-update {
273
272
err = render()
274
273
} else {
275
274
break