Codebase list golang-github-vbauerster-mpb / cb2bc67
if it panics it panics Vladimir Bauer 3 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3030 b = append(b, '%')
3131 }
3232 _, err := st.Write(b)
33 bytePool.Put(p)
3433 if err != nil {
3534 panic(err)
3635 }
36 bytePool.Put(p)
3737 }
3838
3939 // Percentage returns percentage decorator. It's a wrapper of NewPercentage.
5555 }
5656 b = append(b, []byte(unit.String())...)
5757 _, err := st.Write(b)
58 bytePool.Put(p)
5958 if err != nil {
6059 panic(err)
6160 }
61 bytePool.Put(p)
6262 }
6363
6464 const (
109109 }
110110 b = append(b, []byte(unit.String())...)
111111 _, err := st.Write(b)
112 bytePool.Put(p)
113112 if err != nil {
114113 panic(err)
115114 }
115 bytePool.Put(p)
116116 }