From 3e12d2f64bd518a2906056a5c5f8faf15fcf8a3e Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Sun, 16 Oct 2011 18:46:37 +0200 Subject: [PATCH] return early (this is very important) --- src/Composer/Installer/LibraryInstaller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index ae6bf0020..5ea30023d 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/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(); } }