Ver Fonte

return early (this is very important)

Igor Wiedler há 13 anos atrás
pai
commit
409b2e47ae
1 ficheiros alterados com 2 adições e 2 exclusões
  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();
     }
 }