Skip to content

Commit

Permalink
IncrInt64: do not check for n <= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Aug 14, 2024
1 parent b115126 commit 38b91ac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,6 @@ func (b *Bar) IncrBy(n int) {

// IncrInt64 increments progress by amount of n.
func (b *Bar) IncrInt64(n int64) {
if n <= 0 {
return
}
select {
case b.operateState <- func(s *bState) {
s.current += n
Expand Down

0 comments on commit 38b91ac

Please sign in to comment.