Index: utils/pub/validator/lib.dart |
diff --git a/utils/pub/validator/lib.dart b/utils/pub/validator/lib.dart |
index e6798476f191065fc7e92810b6bc3cf538dc85f6..faee7290231abda4caa52fa2be39bc1ab66c36b0 100644 |
--- a/utils/pub/validator/lib.dart |
+++ b/utils/pub/validator/lib.dart |
@@ -31,7 +31,7 @@ class LibValidator extends Validator { |
} |
return listDir(libDir).then((files) { |
- files = files.mappedBy((file) => relativeTo(file, libDir)).toList(); |
+ files = files.map((file) => relativeTo(file, libDir)).toList(); |
if (files.isEmpty) { |
errors.add('You must have a non-empty "lib" directory.\n' |
"Without that, users cannot import any code from your package."); |