Index: utils/pub/validator/utf8_readme.dart |
diff --git a/utils/pub/validator/utf8_readme.dart b/utils/pub/validator/utf8_readme.dart |
index 8bf52a9d302bfa8d1781a279f7486eac3535577d..cbb85c4722124e50e5c6a430c9ba89fe3a0a3fd8 100644 |
--- a/utils/pub/validator/utf8_readme.dart |
+++ b/utils/pub/validator/utf8_readme.dart |
@@ -20,7 +20,7 @@ class Utf8ReadmeValidator extends Validator { |
: super(entrypoint); |
Future validate() { |
- return new Future.of(() { |
+ return new Future.sync(() { |
var readme = entrypoint.root.readmePath; |
if (readme == null) return; |
var bytes = readBinaryFile(readme); |