Merge "Remove unneeded else{} and return"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 1 Apr 2013 20:06:33 +0000 (20:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 1 Apr 2013 20:06:33 +0000 (20:06 +0000)
includes/api/ApiUpload.php

index 2dcf392..719032f 100644 (file)
@@ -444,9 +444,9 @@ class ApiUpload extends ApiBase {
                $verification = $this->mUpload->verifyUpload();
                if ( $verification['status'] === UploadBase::OK ) {
                        return;
-               } else {
-                       return $this->checkVerification( $verification );
                }
+
+               $this->checkVerification( $verification );
        }
 
        /**
@@ -455,7 +455,7 @@ class ApiUpload extends ApiBase {
        protected function checkVerification( array $verification ) {
                global $wgFileExtensions;
 
-               // TODO: Move them to ApiBase's message map
+               // @todo Move them to ApiBase's message map
                switch( $verification['status'] ) {
                        // Recoverable errors
                        case UploadBase::MIN_LENGTH_PARTNAME: