Explorar o código

return early (this is very important)

Igor Wiedler %!s(int64=13) %!d(string=hai) anos
pai
achega
409b2e47ae
Modificáronse 1 ficheiros con 2 adicións e 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();
     }
 }