Skip to content

Commit 38b91ac

Browse files
committed
IncrInt64: do not check for n <= 0
1 parent b115126 commit 38b91ac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bar.go

-3
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,6 @@ func (b *Bar) IncrBy(n int) {
271271

272272
// IncrInt64 increments progress by amount of n.
273273
func (b *Bar) IncrInt64(n int64) {
274-
if n <= 0 {
275-
return
276-
}
277274
select {
278275
case b.operateState <- func(s *bState) {
279276
s.current += n

0 commit comments

Comments
 (0)