Jelajahi Sumber

Fix clear cache when a dir does not exist, fixes #3810

Jordi Boggiano 10 tahun lalu
induk
melakukan
b098a2fdde
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/Composer/Command/ClearCacheCommand.php

+ 2 - 2
src/Composer/Command/ClearCacheCommand.php

@@ -53,13 +53,13 @@ EOT
             if (!$cachePath) {
                 $io->writeError("<info>Cache directory does not exist ($key): $cachePath</info>");
 
-                return;
+                continue;
             }
             $cache = new Cache($io, $cachePath);
             if (!$cache->isEnabled()) {
                 $io->writeError("<info>Cache is not enabled ($key): $cachePath</info>");
 
-                return;
+                continue;
             }
 
             $io->writeError("<info>Clearing cache ($key): $cachePath</info>");