diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2013-05-10 13:55:39 -0700 |
---|---|---|
committer | Aaron Schulz <aschulz@wikimedia.org> | 2013-05-10 13:55:39 -0700 |
commit | b14212992d861766eb7d6b3c919c118dbe92e724 (patch) | |
tree | 723122eea0d84fa09d9ca4d4a556edbcd23e21c2 /includes/filebackend/FileBackendStore.php | |
parent | 6b1194b9dadeff80b51d6af7c56c97244a92a058 (diff) | |
download | mediawikicore-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.php | 8 |
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 ); |