multiprogress.c (clear_progress): Don't check `tty->fp': the caller did it.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 25 Mar 2022 01:29:54 +0000 (01:29 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 25 Mar 2022 18:51:48 +0000 (18:51 +0000)
multiprogress.c

index d8da674..3318415 100644 (file)
@@ -415,8 +415,6 @@ static int clear_progress(struct progress_state *progress,
   unsigned ndel, nleave;
   unsigned i;
 
-  if (!tty->fp) return (-1);
-
   progress_put_sequence(tty, tty->cap.cr, 1);
   if (progress->last_lines) {
     if (f&CLRF_ALL)