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

Unified Diff: pkg/watcher/lib/src/directory_watcher.dart

Issue 50703011: fix csslib and watcher warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « pkg/pkg.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/watcher/lib/src/directory_watcher.dart
diff --git a/pkg/watcher/lib/src/directory_watcher.dart b/pkg/watcher/lib/src/directory_watcher.dart
index 3b39f5a3eaad4c3afda42caa1006afa9694cd3c9..679e227e8d181cefb7124a272e416824d5b5bc8b 100644
--- a/pkg/watcher/lib/src/directory_watcher.dart
+++ b/pkg/watcher/lib/src/directory_watcher.dart
@@ -156,7 +156,7 @@ class DirectoryWatcher {
if (file == null) return _completePoll();
return getModificationTime(file).then((modified) {
- if (_checkForCancel()) return;
+ if (_checkForCancel()) return null;
var lastStatus = _statuses[file];
@@ -164,7 +164,7 @@ class DirectoryWatcher {
if (lastStatus != null && lastStatus.modified == modified) {
// The file is still here.
_polledFiles.add(file);
- return;
+ return null;
}
return _hashFile(file).then((hash) {
« no previous file with comments | « pkg/pkg.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698