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

Unified Diff: utils/pub/command_lish.dart

Issue 13332009: Make listDir and createSymlink synchronous in pub. (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/command_cache.dart ('k') | utils/pub/entrypoint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/command_lish.dart
diff --git a/utils/pub/command_lish.dart b/utils/pub/command_lish.dart
index c2f25290993394ed67d12f0a83a2c945035c8658..1948ba163a37f80530a02c2955b5eaeaee08a6e8 100644
--- a/utils/pub/command_lish.dart
+++ b/utils/pub/command_lish.dart
@@ -146,11 +146,9 @@ class LishCommand extends PubCommand {
"--exclude-standard"]);
}
- return listDir(rootDir, recursive: true).then((entries) {
- return entries
- .where(fileExists) // Skip directories and broken symlinks.
- .map((entry) => path.relative(entry, from: rootDir));
- });
+ return listDir(rootDir, recursive: true)
+ .where(fileExists) // Skip directories and broken symlinks.
+ .map((entry) => path.relative(entry, from: rootDir));
}).then((files) => files.where(_shouldPublish).toList());
}
« no previous file with comments | « utils/pub/command_cache.dart ('k') | utils/pub/entrypoint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698