ResourceLoaderFileModule::extractBasePaths: Simplify if condition
authorKunal Mehta <legoktm@gmail.com>
Thu, 7 Aug 2014 10:27:36 +0000 (11:27 +0100)
committerKunal Mehta <legoktm@gmail.com>
Thu, 7 Aug 2014 10:27:36 +0000 (11:27 +0100)
Change-Id: I69f090595629dabefaa0c6ddaa9a793a2f86ecfd

includes/resourceloader/ResourceLoaderFileModule.php

index c3a36e4..03a9829 100644 (file)
@@ -305,9 +305,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
                // but were preserved for backwards-compatibility just in case. Tread lightly.
 
                $localBasePath = $localBasePath === null ? $IP : $localBasePath;
-               if ( $remoteBasePath !== null ) {
-                       $remoteBasePath = $remoteBasePath;
-               } else {
+               if ( $remoteBasePath === null ) {
                        $remoteBasePath = $wgResourceBasePath === null ? $wgScriptPath : $wgResourceBasePath;
                }