From 9c98b3eebf57d0e6aec97ba89c2a81a96d74e912 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 25 Mar 2022 01:34:17 +0000 Subject: [PATCH] multiprogress.c (progress_shownotice): Remove pointless guard. The `progress_put_sequence' function already does the right thing here. --- multiprogress.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/multiprogress.c b/multiprogress.c index 0088932..3ce4073 100644 --- a/multiprogress.c +++ b/multiprogress.c @@ -581,8 +581,7 @@ int progress_shownotice(struct progress_render_state *render, int bg, int fg) { progress_set_fgcolour(tty, fg); progress_set_bgcolour(tty, bg); } else if (tty->cap.mr) progress_put_sequence(tty, tty->cap.mr, 1); - if (tty->cap.md) - progress_put_sequence(tty, tty->cap.md, 1); + progress_put_sequence(tty, tty->cap.md, 1); put_str(tty->fp, render->linebuf, render->leftsz); if (!render->rightsz && (tty->cap.f&TCF_BCE) && tty->cap.ce) -- 2.11.0