| Index: utils/pub/validator/license.dart
|
| diff --git a/utils/pub/validator/license.dart b/utils/pub/validator/license.dart
|
| index ffcbd10c9deb8b2e669348bfa659aa31ac2547f9..50d1bfe2cdf399ad3598ac54e868c04d8f1a37ba 100644
|
| --- a/utils/pub/validator/license.dart
|
| +++ b/utils/pub/validator/license.dart
|
| @@ -19,7 +19,7 @@ class LicenseValidator extends Validator {
|
| : super(entrypoint);
|
|
|
| Future validate() {
|
| - return new Future.of(() {
|
| + return new Future.sync(() {
|
| var licenseLike = new RegExp(
|
| r"^([a-zA-Z0-9]+[-_])?(LICENSE|COPYING)(\..*)?$");
|
| if (listDir(entrypoint.root.dir)
|
|
|