aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filebackend/FileBackendStore.php
diff options
context:
space:
mode:
authorAaron Schulz <aschulz@wikimedia.org>2013-05-10 13:55:39 -0700
committerAaron Schulz <aschulz@wikimedia.org>2013-05-10 13:55:39 -0700
commitb14212992d861766eb7d6b3c919c118dbe92e724 (patch)
tree723122eea0d84fa09d9ca4d4a556edbcd23e21c2 /includes/filebackend/FileBackendStore.php
parent6b1194b9dadeff80b51d6af7c56c97244a92a058 (diff)
downloadmediawikicore-b14212992d861766eb7d6b3c919c118dbe92e724.tar.gz
mediawikicore-b14212992d861766eb7d6b3c919c118dbe92e724.zip
[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend.
Change-Id: I57566a1779f353c18d96c59c47112c753aea6b90
Diffstat (limited to 'includes/filebackend/FileBackendStore.php')
-rw-r--r--includes/filebackend/FileBackendStore.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php
index c620dd3be896..e20c6fcc5cda 100644
--- a/includes/filebackend/FileBackendStore.php
+++ b/includes/filebackend/FileBackendStore.php
@@ -1134,10 +1134,6 @@ abstract class FileBackendStore extends FileBackend {
wfProfileIn( __METHOD__ . '-' . $this->name );
$status = Status::newGood();
- if ( !count( $ops ) ) {
- return $status; // nothing to do
- }
-
// Fix up custom header name/value pairs...
$ops = array_map( array( $this, 'stripInvalidHeadersFromOp' ), $ops );
@@ -1190,10 +1186,6 @@ abstract class FileBackendStore extends FileBackend {
wfProfileIn( __METHOD__ . '-' . $this->name );
$status = Status::newGood();
- if ( !count( $ops ) ) {
- return $status; // nothing to do
- }
-
// Fix up custom header name/value pairs...
$ops = array_map( array( $this, 'stripInvalidHeadersFromOp' ), $ops );