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