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

Unified Diff: utils/pub/hosted_source.dart

Issue 13332009: Make listDir and createSymlink synchronous in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: utils/pub/hosted_source.dart
diff --git a/utils/pub/hosted_source.dart b/utils/pub/hosted_source.dart
index 4d6626f594d6f0f26878399b563ad89c48041d2f..59702fb0764a605fb7de414542bad47220b5f69c 100644
--- a/utils/pub/hosted_source.dart
+++ b/utils/pub/hosted_source.dart
@@ -124,10 +124,8 @@ class HostedSource extends Source {
_getSourceDirectory(_defaultUrl));
if (!dirExists(cacheDir)) return [];
- return listDir(path.join(cacheDir)).then((entries) {
- return entries.map((entry) =>
+ return listDir(path.join(cacheDir)).map((entry) =>
new Package.load(null, entry, systemCache.sources));
- });
});
}

Powered by Google App Engine
This is Rietveld 408576698