Index: utils/pub/system_cache.dart |
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart |
index 50b022ee2495435c83fb433a0db1c2842da036a5..1e26554cd72a177088c1a83779d6940b07e50b1d 100644 |
--- a/utils/pub/system_cache.dart |
+++ b/utils/pub/system_cache.dart |
@@ -93,7 +93,7 @@ class SystemCache { |
Future deleteTempDir() { |
log.fine('Clean up system cache temp directory $tempDir.'); |
return dirExists(tempDir).then((exists) { |
- if (!exists) return new Future.immediate(null); |
+ if (!exists) return; |
return deleteDir(tempDir); |
}); |
} |