| Index: utils/pub/validator/compiled_dartdoc.dart
|
| diff --git a/utils/pub/validator/compiled_dartdoc.dart b/utils/pub/validator/compiled_dartdoc.dart
|
| index b139869aa89f5652c6d676a62219f9405a8295a2..1998c47c479a3e2784e18136a1dc0a3faeec2a16 100644
|
| --- a/utils/pub/validator/compiled_dartdoc.dart
|
| +++ b/utils/pub/validator/compiled_dartdoc.dart
|
| @@ -20,8 +20,8 @@ class CompiledDartdocValidator extends Validator {
|
| : super(entrypoint);
|
|
|
| Future validate() {
|
| - return listDir(entrypoint.root.dir, recursive: true).then((entries) {
|
| - for (var entry in entries) {
|
| + return new Future.of(() {
|
| + for (var entry in listDir(entrypoint.root.dir, recursive: true)) {
|
| if (path.basename(entry) != "nav.json") continue;
|
| var dir = path.dirname(entry);
|
|
|
|
|