Explorar el Código

return early (this is very important)

Igor Wiedler hace 13 años
padre
commit
409b2e47ae
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Composer/Installer/LibraryInstaller.php

+ 2 - 2
src/Composer/Installer/LibraryInstaller.php

@@ -128,8 +128,8 @@ class LibraryInstaller implements InstallerInterface
     {
         if (null === $package->getInstallAs()) {
             return ($this->directory ? $this->directory.'/' : '').$package->getName();
-        } else {
-            return ($this->directory ? $this->directory.'/' : '').$package->getInstallAs();
         }
+
+        return ($this->directory ? $this->directory.'/' : '').$package->getInstallAs();
     }
 }