Codebase list golang-github-vbauerster-mpb / 93f2ea1
refactoring: makeUpdateBarPriorityTest same with else if Vladimir Bauer 2 years ago
1 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
221221 p.UpdateBarPriority(b, 3, lazy)
222222 checkOrder := []*mpb.Bar{b, c, a} // updated order
223223
224 if !refresh {
225 if lazy {
226 checkOrder = []*mpb.Bar{c, b, a} // pristine order
227 }
228 } else {
224 if refresh {
229225 refreshCh <- time.Now()
226 } else if lazy {
227 checkOrder = []*mpb.Bar{c, b, a} // pristine order
230228 }
231229
232230 go cancel()