minor: return FormatMsg in one line
Vladimir Bauer
3 years ago
| 33 | 33 |
|
| 34 | 34 |
func (d *onAbortWrapper) Decor(s Statistics) string {
|
| 35 | 35 |
if s.Aborted {
|
| 36 | |
wc := d.GetConf()
|
| 37 | |
return wc.FormatMsg(d.msg)
|
|
36 |
return d.GetConf().FormatMsg(d.msg)
|
| 38 | 37 |
}
|
| 39 | 38 |
return d.Decorator.Decor(s)
|
| 40 | 39 |
}
|
| 32 | 32 |
|
| 33 | 33 |
func (d *onCompleteWrapper) Decor(s Statistics) string {
|
| 34 | 34 |
if s.Completed {
|
| 35 | |
wc := d.GetConf()
|
| 36 | |
return wc.FormatMsg(d.msg)
|
|
35 |
return d.GetConf().FormatMsg(d.msg)
|
| 37 | 36 |
}
|
| 38 | 37 |
return d.Decorator.Decor(s)
|
| 39 | 38 |
}
|