]> diplodocus.org Git - nmh/blobdiff - sbr/read_yes_or_no_if_tty.c
sh scripts: Remove `else' after exit at end of then-block.
[nmh] / sbr / read_yes_or_no_if_tty.c
index 05ffc2f..2427f59 100644 (file)
@@ -14,7 +14,7 @@ read_yes_or_no_if_tty (const char *prompt)
     static int interactive = -1;
 
     if (interactive < 0)
-       interactive = isatty (fileno (stdin)) ? 1 : 0;
+        interactive = isatty (fileno (stdin));
 
     return (interactive ? read_switch (prompt, anoyes) : 1);
 }