Codebase list golang-github-vbauerster-mpb / c0d426c
change state receiver to *state Vladimir Bauer 9 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
364364 b.removeReqCh <- struct{}{}
365365 }
366366
367 func (s state) draw(termWidth int) []byte {
367 func (s *state) draw(termWidth int) []byte {
368368 if termWidth <= 0 {
369369 termWidth = s.barWidth
370370 }
419419 return buf
420420 }
421421
422 func (s state) fillBar(width int) []byte {
422 func (s *state) fillBar(width int) []byte {
423423 if width < 2 {
424424 return []byte{}
425425 }