Index: utils/pub/validator/directory.dart |
diff --git a/utils/pub/validator/directory.dart b/utils/pub/validator/directory.dart |
index 5d6628d50fcd0d28ea498306eba8d37f77666389..216f2bf69f61588deb4d70bca112fd07bcd36b66 100644 |
--- a/utils/pub/validator/directory.dart |
+++ b/utils/pub/validator/directory.dart |
@@ -21,7 +21,7 @@ class DirectoryValidator extends Validator { |
static final _PLURAL_NAMES = ["tools", "tests", "docs", "examples"]; |
Future validate() { |
- return new Future.of(() { |
+ return new Future.sync(() { |
for (var dir in listDir(entrypoint.root.dir)) { |
if (!dirExists(dir)) continue; |