diff --git a/decor/on_abort.go b/decor/on_abort.go index 862ae33..65a8d9d 100644 --- a/decor/on_abort.go +++ b/decor/on_abort.go @@ -34,8 +34,7 @@ func (d *onAbortWrapper) Decor(s Statistics) string { if s.Aborted { - wc := d.GetConf() - return wc.FormatMsg(d.msg) + return d.GetConf().FormatMsg(d.msg) } return d.Decorator.Decor(s) } diff --git a/decor/on_complete.go b/decor/on_complete.go index 6ee9268..0a3897b 100644 --- a/decor/on_complete.go +++ b/decor/on_complete.go @@ -33,8 +33,7 @@ func (d *onCompleteWrapper) Decor(s Statistics) string { if s.Completed { - wc := d.GetConf() - return wc.FormatMsg(d.msg) + return d.GetConf().FormatMsg(d.msg) } return d.Decorator.Decor(s) }