Index: utils/pub/source.dart |
diff --git a/utils/pub/source.dart b/utils/pub/source.dart |
index 53c56b3383f2e8a255bda835af8ddf657de64606..60d455b6164305b544984d0635a565bd624015fc 100644 |
--- a/utils/pub/source.dart |
+++ b/utils/pub/source.dart |
@@ -119,7 +119,8 @@ abstract class Source { |
if (!isCorrupted) return true; |
// Busted, so wipe out the package and reinstall. |
- return deleteDir(packageDir).then((_) => false); |
+ deleteDir(packageDir); |
+ return false; |
}); |
}).then((isInstalled) { |
if (isInstalled) return true; |