From 0c4cae056f6264c9dd882a46d42512b0e9d8419e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 29 Sep 2016 08:40:03 +0200 Subject: [PATCH] Simplify code --- src/Composer/Downloader/PathDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/PathDownloader.php b/src/Composer/Downloader/PathDownloader.php index cf0cb4068..6505d1f02 100644 --- a/src/Composer/Downloader/PathDownloader.php +++ b/src/Composer/Downloader/PathDownloader.php @@ -60,7 +60,7 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter $allowedStrategies = array(self::STRATEGY_SYMLINK, self::STRATEGY_MIRROR); $mirrorPathRepos = getenv('COMPOSER_MIRROR_PATH_REPOS'); - if (true === (bool)$mirrorPathRepos) { + if ($mirrorPathRepos) { $currentStrategy = self::STRATEGY_MIRROR; }