From: Siebrand Mazeland Date: Sat, 23 Nov 2013 18:36:50 +0000 (+0100) Subject: Remove unused local variable X-Git-Tag: 1.31.0-rc.0~17912 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=c2326523034f519ae13ce93d2dbc3426877cd1b1;p=lhc%2Fweb%2Fwiklou.git Remove unused local variable Just count if there are array members Change-Id: I4f9cc8ba554404796822317fdb285e2f560d01dd --- diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index beca79eebf..2fe51c0a2c 100644 --- a/includes/filebackend/FileBackendStore.php +++ b/includes/filebackend/FileBackendStore.php @@ -1161,7 +1161,7 @@ abstract class FileBackendStore extends FileBackend { * @return array List of corresponding Status objects */ protected function doExecuteOpHandlesInternal( array $fileOpHandles ) { - foreach ( $fileOpHandles as $fileOpHandle ) { // OK if empty + if ( count( $fileOpHandles ) ) { throw new MWException( "This backend supports no asynchronous operations." ); }