IncrInt64: do not check for n <= 0
Vladimir Bauer
1 year, 10 months ago
1 changed file(s) with
0 addition(s)
and
3 deletion(s)
.
Raw diff
Collapse all
Expand all
+0
-3
bar.go
less
more
270
270
271
271
// IncrInt64 increments progress by amount of n.
272
272
func (b *Bar) IncrInt64(n int64) {
273
if n <= 0 {
274
return
275
}
276
273
select {
277
274
case b.operateState <- func(s *bState) {
278
275
s.current += n