Codebase list golang-github-vbauerster-mpb / ad560e9
unnecessary type conversion Vladimir Bauer 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7070 if w, ok := st.Width(); ok {
7171 if len(res) < w {
7272 pad := strings.Repeat(" ", w-len(res))
73 if st.Flag(int('-')) {
73 if st.Flag('-') {
7474 res += pad
7575 } else {
7676 res = pad + res
124124 if w, ok := st.Width(); ok {
125125 if len(res) < w {
126126 pad := strings.Repeat(" ", w-len(res))
127 if st.Flag(int('-')) {
127 if st.Flag('-') {
128128 res += pad
129129 } else {
130130 res = pad + res