Codebase list golang-github-vbauerster-mpb / 84b6a93
minor: return FormatMsg in one line Vladimir Bauer 3 years ago
2 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3333
3434 func (d *onAbortWrapper) Decor(s Statistics) string {
3535 if s.Aborted {
36 wc := d.GetConf()
37 return wc.FormatMsg(d.msg)
36 return d.GetConf().FormatMsg(d.msg)
3837 }
3938 return d.Decorator.Decor(s)
4039 }
3232
3333 func (d *onCompleteWrapper) Decor(s Statistics) string {
3434 if s.Completed {
35 wc := d.GetConf()
36 return wc.FormatMsg(d.msg)
35 return d.GetConf().FormatMsg(d.msg)
3736 }
3837 return d.Decorator.Decor(s)
3938 }