Codebase list golang-github-vbauerster-mpb / 38b91ac
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
270270
271271 // IncrInt64 increments progress by amount of n.
272272 func (b *Bar) IncrInt64(n int64) {
273 if n <= 0 {
274 return
275 }
276273 select {
277274 case b.operateState <- func(s *bState) {
278275 s.current += n