| Index: sdk/lib/_internal/pub/lib/src/validator/name.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/validator/name.dart b/sdk/lib/_internal/pub/lib/src/validator/name.dart
|
| index 1285fb1b9ead20378015f28a220ee5ae855e2d00..1b77ead1bee1f786eb88a31d165deef021d8c524 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/validator/name.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/validator/name.dart
|
| @@ -10,6 +10,7 @@ import 'package:path/path.dart' as path;
|
|
|
| import '../entrypoint.dart';
|
| import '../io.dart';
|
| +import '../utils.dart';
|
| import '../validator.dart';
|
|
|
| /// Dart reserved words, from the Dart spec.
|
| @@ -26,7 +27,7 @@ class NameValidator extends Validator {
|
| : super(entrypoint);
|
|
|
| Future validate() {
|
| - return new Future.sync(() {
|
| + return syncFuture(() {
|
| _checkName(entrypoint.root.name, 'Package name "${entrypoint.root.name}"',
|
| isPackage: true);
|
|
|
|
|