diff --git a/bar.go b/bar.go index 60140fc..198d6aa 100644 --- a/bar.go +++ b/bar.go @@ -144,9 +144,7 @@ // operation for example. func (b *Bar) SetRefill(amount int64) { select { - case b.operateState <- func(s *bState) { - s.refill = amount - }: + case b.operateState <- func(s *bState) { s.refill = amount }: case <-b.done: } } @@ -325,9 +323,7 @@ // or after progress resume. func (b *Bar) DecoratorAverageAdjust(start time.Time) { select { - case b.operateState <- func(s *bState) { - s.decoratorAverageAdjust(start) - }: + case b.operateState <- func(s *bState) { s.decoratorAverageAdjust(start) }: case <-b.done: } }