Codebase list golang-github-vbauerster-mpb / 69b6adf
minor: anon result Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
491491 }
492492
493493 func (s *bState) drawImpl(stat decor.Statistics) (io.Reader, error) {
494 type result struct {
494 decorFiller := func(buf *bytes.Buffer, decorators []decor.Decorator) (res struct {
495495 width int
496496 truncate bool
497497 err error
498 }
499 decorFiller := func(buf *bytes.Buffer, decorators []decor.Decorator) (res result) {
498 }) {
500499 res.width = stat.AvailableWidth
501500 for _, d := range decorators {
502501 str := d.Decor(stat)