multiprogress.c (progress_shownotice): Remove pointless guard.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 25 Mar 2022 01:34:17 +0000 (01:34 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 25 Mar 2022 18:51:48 +0000 (18:51 +0000)
The `progress_put_sequence' function already does the right thing here.

multiprogress.c

index 0088932..3ce4073 100644 (file)
@@ -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)