From 6d8c760bba0686b031afff0c427ceb0e70c1307c Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 14 Dec 2010 12:51:59 +0000 Subject: [PATCH] Style fix for r76220 --- maintenance/Maintenance.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index e1e0098a99..5e615e6f9f 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1070,11 +1070,7 @@ abstract class Maintenance { public static function readconsole( $prompt = '> ' ) { static $isatty = null; if ( is_null( $isatty ) ) { - if ( posix_isatty( 0 /*STDIN*/ ) ) { - $isatty = true; - } else { - $isatty = false; - } + $isatty = posix_isatty( 0 /*STDIN*/ ); } if ( $isatty && function_exists( 'readline' ) ) { -- 2.20.1