Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/97322
Change subject: Remove unused local variable
......................................................................
Remove unused local variable
Just count if there are array members
Change-Id: I4f9cc8ba554404796822317fdb285e2f560d01dd
---
M includes/filebackend/FileBackendStore.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/22/97322/1
diff --git a/includes/filebackend/FileBackendStore.php
b/includes/filebackend/FileBackendStore.php
index beca79e..98131b2 100644
--- a/includes/filebackend/FileBackendStore.php
+++ b/includes/filebackend/FileBackendStore.php
@@ -1161,7 +1161,7 @@
* @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." );
}
--
To view, visit https://gerrit.wikimedia.org/r/97322
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f9cc8ba554404796822317fdb285e2f560d01dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits