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

Unified Diff: build.dart

Issue 14295009: Fix widget.dart to work with the latest web_ui library. Specifically, query selectors need to use "… (Closed) Base URL: https://github.com/kevmoo/widget.dart.git@master
Patch Set: PTAL Created 7 years, 8 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 | « no previous file | changelog.md » ('j') | changelog.md » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build.dart
diff --git a/build.dart b/build.dart
index dcb3efbf810f14419bebf90cbcce415b815f8e10..047b75c620e147aed9824ae6a95b12eaf1b927a8 100644
--- a/build.dart
+++ b/build.dart
@@ -102,14 +102,14 @@ Future<bool> _updateIfChanged(String filePath, String newContent) {
return file.readAsString()
.then((String content) => content != newContent);
} else {
- return new Future.immediate(true);
+ return new Future.value(true);
}
}).then((bool shouldUpdate) {
if(shouldUpdate) {
return file.writeAsString(newContent)
.then((_) => true);
} else {
- return new Future.immediate(false);
+ return new Future.value(false);
}
});
}
« no previous file with comments | « no previous file | changelog.md » ('j') | changelog.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698