Skip to content

Commit

Permalink
Fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas JUHEL committed Jun 26, 2020
1 parent d4a56c6 commit 49ef8be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion njs-progress/bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ func (b *bar) Refill(amount int64) {
}

func (b *bar) NewWorker() error {
if b.c == 0 {
if !b.u {
b.t++
b.b.SetTotal(b.t, false)
}

return b.s.NewWorker()
}

Expand Down

0 comments on commit 49ef8be

Please sign in to comment.