Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: utils/pub/system_cache.dart

Issue 12042053: Get rid of unneeded Future.immediate() calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
});
}
« utils/pub/entrypoint.dart ('K') | « utils/pub/pub.dart ('k') | utils/pub/validator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698