minor: just result
Vladimir Bauer
3 years ago
| 491 | 491 | } |
| 492 | 492 | |
| 493 | 493 | func (s *bState) drawImpl(stat decor.Statistics) (io.Reader, error) { |
| 494 | type decorResult struct { | |
| 494 | type result struct { | |
| 495 | 495 | width int |
| 496 | 496 | truncate bool |
| 497 | 497 | err error |
| 498 | 498 | } |
| 499 | decorFiller := func(buf *bytes.Buffer, decorators []decor.Decorator) (res decorResult) { | |
| 499 | decorFiller := func(buf *bytes.Buffer, decorators []decor.Decorator) (res result) { | |
| 500 | 500 | res.width = stat.AvailableWidth |
| 501 | 501 | for _, d := range decorators { |
| 502 | 502 | str := d.Decor(stat) |