Skip to content

Commit

Permalink
refactoring: makeUpdateBarPriorityTest same with else if
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Aug 3, 2023
1 parent a0e5e23 commit 93f2ea1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions progress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,10 @@ func makeUpdateBarPriorityTest(refresh, lazy bool) func(*testing.T) {
p.UpdateBarPriority(b, 3, lazy)
checkOrder := []*mpb.Bar{b, c, a} // updated order

if !refresh {
if lazy {
checkOrder = []*mpb.Bar{c, b, a} // pristine order
}
} else {
if refresh {
refreshCh <- time.Now()
} else if lazy {
checkOrder = []*mpb.Bar{c, b, a} // pristine order
}

go cancel()
Expand Down

0 comments on commit 93f2ea1

Please sign in to comment.