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

Unified Diff: utils/pub/validator/directory.dart

Issue 11783009: Big merge from experimental to bleeding edge. (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
« no previous file with comments | « utils/pub/validator.dart ('k') | utils/pub/validator/lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator/directory.dart
diff --git a/utils/pub/validator/directory.dart b/utils/pub/validator/directory.dart
index 07ad933ce56b2ee4af3e2826ced8fa78854e094d..80568bab2e8f477ea63a7aa68ff4c56875a7df2a 100644
--- a/utils/pub/validator/directory.dart
+++ b/utils/pub/validator/directory.dart
@@ -17,8 +17,8 @@ class DirectoryValidator extends Validator {
Future validate() {
return listDir(entrypoint.root.dir).chain((dirs) {
- return Futures.wait(dirs.map((dir) {
- return dirExists(dir).transform((exists) {
+ return Futures.wait(dirs.mappedBy((dir) {
+ return dirExists(dir).then((exists) {
if (!exists) return;
dir = basename(dir);
« no previous file with comments | « utils/pub/validator.dart ('k') | utils/pub/validator/lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698