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

Unified Diff: utils/pub/system_cache.dart

Issue 12879015: Provisionally stop working around issues 9252 and 9253. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 9 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
« no previous file with comments | « utils/pub/source.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index e93f8f4f56d07c09971f1ae6d15d976321e02d97..b6467b5f88f78f12aa18e4928c1ea1fce2ec7007 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -108,12 +108,10 @@ class SystemCache {
return io.createTempDir(path.join(temp, 'dir'));
}
- /// Delete's the system cache's internal temp directory.
- Future deleteTempDir() {
+ /// Deletes the system cache's internal temp directory.
+ void deleteTempDir() {
log.fine('Clean up system cache temp directory $tempDir.');
- return defer(() {
- if (!dirExists(tempDir)) return;
- return deleteDir(tempDir);
- });
+ if (!dirExists(tempDir)) return;
+ deleteDir(tempDir);
}
}
« no previous file with comments | « utils/pub/source.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698