Index: utils/pub/validator/lib.dart |
diff --git a/utils/pub/validator/lib.dart b/utils/pub/validator/lib.dart |
index c9c5aba4a6f8ea53d1bc084e57333dfb909b6f30..e6798476f191065fc7e92810b6bc3cf538dc85f6 100644 |
--- a/utils/pub/validator/lib.dart |
+++ b/utils/pub/validator/lib.dart |
@@ -27,7 +27,7 @@ class LibValidator extends Validator { |
if (!libDirExists) { |
errors.add('You must have a "lib" directory.\n' |
"Without that, users cannot import any code from your package."); |
- return new Future.immediate(null); |
+ return; |
} |
return listDir(libDir).then((files) { |