simplify with gofmt -s
Vladimir Bauer
9 years ago
| 427 | 427 | fmtBytes := convertFmtRunesToBytes(s.format) |
| 428 | 428 | |
| 429 | 429 | if s.simpleSpinner != nil { |
| 430 | for _, block := range [...][]byte{fmtBytes[rLeft], []byte{s.simpleSpinner()}, fmtBytes[rRight]} { | |
| 430 | for _, block := range [...][]byte{fmtBytes[rLeft], {s.simpleSpinner()}, fmtBytes[rRight]} { | |
| 431 | 431 | barBlock = append(barBlock, block...) |
| 432 | 432 | } |
| 433 | 433 | return concatenateBlocks(buf, prependBlock, leftSpace, barBlock, rightSpace, appendBlock) |