Remove unused local variable
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sat, 23 Nov 2013 18:36:50 +0000 (19:36 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 25 Nov 2013 05:48:23 +0000 (06:48 +0100)
Just count if there are array members

Change-Id: I4f9cc8ba554404796822317fdb285e2f560d01dd

includes/filebackend/FileBackendStore.php

index beca79e..2fe51c0 100644 (file)
@@ -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." );
                }