]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
tee.2: Remove unnecessary else
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 3 Jan 2022 17:19:29 +0000 (18:19 +0100)
committerAlejandro Colomar <alx.manpages@gmail.com>
Mon, 3 Jan 2022 17:26:30 +0000 (18:26 +0100)
Both continue and exit(3) jump out of the normal flow, so there's
no need for an else.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/tee.2

index 4e57925b3579cd0d4be88b0407c29506f69eca04..cd7c2d72de2393ae467970d7643ab01eeb83dd44 100644 (file)
@@ -189,9 +189,9 @@ main(int argc, char *argv[])
                 continue;
             perror("tee");
             exit(EXIT_FAILURE);
-        } else
-            if (len == 0)
-                break;
+        }
+        if (len == 0)
+            break;
 
         /*
          * Consume stdin by splicing it to a file.