Index: utils/pub/package.dart |
diff --git a/utils/pub/package.dart b/utils/pub/package.dart |
index 883b01b1bdef01cade760790d543548bdab19661..f7e111cd0c1c9e1e5c20f33a737acdadc256b6eb 100644 |
--- a/utils/pub/package.dart |
+++ b/utils/pub/package.dart |
@@ -46,7 +46,7 @@ class Package { |
String get readmePath { |
var readmes = listDir(dir).map(path.basename). |
where((entry) => entry.contains(_README_REGEXP)); |
- if (readmes.isEmpty) return; |
+ if (readmes.isEmpty) return null; |
return path.join(dir, readmes.reduce((readme1, readme2) { |
var extensions1 = ".".allMatches(readme1).length; |