Index: utils/pub/validator/name.dart |
diff --git a/utils/pub/validator/name.dart b/utils/pub/validator/name.dart |
index 67e2da0257bc6bca4a76f96843f46fe741622506..eb1bc85034edc1b1295ab73049d598ed79c82120 100644 |
--- a/utils/pub/validator/name.dart |
+++ b/utils/pub/validator/name.dart |
@@ -48,7 +48,7 @@ class NameValidator extends Validator { |
Future<List<String>> get _libraries { |
var libDir = join(entrypoint.root.dir, "lib"); |
return dirExists(libDir).then((libDirExists) { |
- if (!libDirExists) return new Future.immediate([]); |
+ if (!libDirExists) return []; |
return listDir(libDir, recursive: true); |
}).then((files) { |
return files |