Skip to content

Commit

Permalink
OnAbortMeta fix condition
Browse files Browse the repository at this point in the history
fixes #140
  • Loading branch information
vbauerster committed Apr 3, 2024
1 parent f6ccfdd commit 3eab88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decor/on_abort.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type onAbortMetaWrapper struct {
}

func (d onAbortMetaWrapper) Decor(s Statistics) (string, int) {
if s.Completed {
if s.Aborted {
str, width := d.Decorator.Decor(s)
return d.fn(str), width
}
Expand Down

0 comments on commit 3eab88e

Please sign in to comment.