Skip to content

Commit

Permalink
refactor(progressbar): make add more safe
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Jan 4, 2023
1 parent b03ed07 commit a945c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progressbar_printer.go
Expand Up @@ -250,7 +250,7 @@ func (p *ProgressbarPrinter) Add(count int) *ProgressbarPrinter {
p.Current += count
p.updateProgress()

if p.Current == p.Total {
if p.Current >= p.Total {
p.Stop()
}
return p
Expand Down

0 comments on commit a945c05

Please sign in to comment.