Kaynağa Gözat

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

Jordi Boggiano 10 yıl önce
ebeveyn
işleme
b098a2fdde
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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>");