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