diff --git a/bar_filler_bar.go b/bar_filler_bar.go index 6a45dbd..282d143 100644 --- a/bar_filler_bar.go +++ b/bar_filler_bar.go @@ -189,7 +189,7 @@ return bf } -func (s *bFiller) Fill(w io.Writer, stat decor.Statistics) (err error) { +func (s *bFiller) Fill(w io.Writer, stat decor.Statistics) error { width := internal.CheckRequestedWidth(stat.RequestedWidth, stat.AvailableWidth) // don't count brackets as progress width -= (s.components[iLbound].width + s.components[iRbound].width) @@ -197,7 +197,7 @@ return nil } - err = s.meta[iLbound](w, s.components[iLbound].bytes) + err := s.meta[iLbound](w, s.components[iLbound].bytes) if err != nil { return err }