Codebase list golang-github-vbauerster-mpb / 4f13019
refactoring: prefer len(bb) Vladimir Bauer 7 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
4646
4747 func (s *barFiller) setReverse() {
4848 s.reverse = true
49 }
50
51 func (s *barFiller) SetRefill(count int) {
52 s.refillCount = count
4953 }
5054
5155 func (s *barFiller) Fill(w io.Writer, width int, stat *decor.Statistics) {
100104 }
101105 }
102106
103 for i := 0; i < width; i++ {
107 for i := 0; i < len(bb); i++ {
104108 w.Write(bb[i])
105109 }
106110 w.Write(s.format[rRight])
107111 }
108
109 func (s *barFiller) SetRefill(count int) {
110 s.refillCount = count
111 }