Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Unified Diff: utils/pub/validator/lib.dart

Issue 12042053: Get rid of unneeded Future.immediate() calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698