Codebase list golang-github-vbauerster-mpb / 851b21e
suppress example: one defer Vladimir Bauer 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5959 return func(w io.Writer, width int, st *decor.Statistics) {
6060 select {
6161 case m := <-ch:
62 if f, ok := filler.(refiller); ok {
63 defer f.SetRefill(st.Current)
64 }
6562 defer func() {
63 if f, ok := filler.(refiller); ok {
64 f.SetRefill(st.Current)
65 }
6666 msg = &m
6767 }()
6868 nextCh <- struct{}{}