Index: utils/pub/validator/lib.dart |
diff --git a/utils/pub/validator/lib.dart b/utils/pub/validator/lib.dart |
index 7ff06fcab1dd3816622b044af56836cc641958a8..2e72738bc5a4bce4d4775a29f7a85a1297a56284 100644 |
--- a/utils/pub/validator/lib.dart |
+++ b/utils/pub/validator/lib.dart |
@@ -23,7 +23,7 @@ class LibValidator extends Validator { |
: super(entrypoint); |
Future validate() { |
- return new Future.of(() { |
+ return new Future.sync(() { |
var libDir = path.join(entrypoint.root.dir, "lib"); |
if (!dirExists(libDir)) { |