浏览代码

don't return useless info

everzet 13 年之前
父节点
当前提交
cc740249ff
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/Composer/Downloader/DownloadManager.php

+ 4 - 4
src/Composer/Downloader/DownloadManager.php

@@ -81,8 +81,6 @@ class DownloadManager
      * @param   string              $targetDir      target dir
      * @param   Boolean             $preferSource   prefer installation from source
      *
-     * @return  string                              downloader type (source/dist)
-     *
      * @throws  InvalidArgumentException            if package have no urls to download from
      */
     public function download(PackageInterface $package, $targetDir, $preferSource = null)
@@ -95,14 +93,16 @@ class DownloadManager
             $downloader = $this->getDownloader($distType);
             $package->setInstallationSource('dist');
             $downloader->distDownload($package, $targetDir);
-            return 'dist';
+
+            return;
         }
 
         if ($sourceType) {
             $downloader = $this->getDownloader($sourceType);
             $package->setInstallationSource('source');
             $downloader->sourceDownload($package, $targetDir);
-            return 'source';
+
+            return;
         }
 
         throw new \InvalidArgumentException('Package should have dist or source specified');