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

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

Issue 11785028: Commit Martin's patch for pub + lib_v2. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. 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
« no previous file with comments | « utils/pub/validator/directory.dart ('k') | utils/pub/validator/license.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator/lib.dart
diff --git a/utils/pub/validator/lib.dart b/utils/pub/validator/lib.dart
index 6afeb88fb0e5a0b5556ab4448bd6942cb0a18c47..c9c5aba4a6f8ea53d1bc084e57333dfb909b6f30 100644
--- a/utils/pub/validator/lib.dart
+++ b/utils/pub/validator/lib.dart
@@ -4,6 +4,7 @@
library lib_validator;
+import 'dart:async';
import 'dart:io';
import '../entrypoint.dart';
@@ -22,7 +23,7 @@ class LibValidator extends Validator {
Future validate() {
var libDir = join(entrypoint.root.dir, "lib");
- return dirExists(libDir).chain((libDirExists) {
+ return dirExists(libDir).then((libDirExists) {
if (!libDirExists) {
errors.add('You must have a "lib" directory.\n'
"Without that, users cannot import any code from your package.");
« no previous file with comments | « utils/pub/validator/directory.dart ('k') | utils/pub/validator/license.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698