Codebase list golang-github-vbauerster-mpb / f6b6d0e
bar filler: no need for named return error Vladimir Bauer 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
188188 return bf
189189 }
190190
191 func (s *bFiller) Fill(w io.Writer, stat decor.Statistics) (err error) {
191 func (s *bFiller) Fill(w io.Writer, stat decor.Statistics) error {
192192 width := internal.CheckRequestedWidth(stat.RequestedWidth, stat.AvailableWidth)
193193 // don't count brackets as progress
194194 width -= (s.components[iLbound].width + s.components[iRbound].width)
196196 return nil
197197 }
198198
199 err = s.meta[iLbound](w, s.components[iLbound].bytes)
199 err := s.meta[iLbound](w, s.components[iLbound].bytes)
200200 if err != nil {
201201 return err
202202 }