Chromium Code Reviews| 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(() { |
|
Bob Nystrom
2013/03/29 21:22:06
If you you're going to switch some defer() calls t
nweiz
2013/03/29 22:09:02
I'll do it in a future CL.
Bob Nystrom
2013/03/29 22:14:55
OK, add a TODO where defer() is defined then.
|
| + for (var entry in listDir(entrypoint.root.dir, recursive: true)) { |
| if (path.basename(entry) != "nav.json") continue; |
| var dir = path.dirname(entry); |