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

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

Issue 69013003: Fix some analyzer warnings and hints in pkg/watcher. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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: pkg/watcher/lib/src/directory_watcher/mac_os.dart
diff --git a/pkg/watcher/lib/src/directory_watcher/mac_os.dart b/pkg/watcher/lib/src/directory_watcher/mac_os.dart
index 9d3660df7b2408351ad0cc2f4e6fa7c01f33eb36..5b1feb342f2a220316c339af1e01dd8a3f6eba23 100644
--- a/pkg/watcher/lib/src/directory_watcher/mac_os.dart
+++ b/pkg/watcher/lib/src/directory_watcher/mac_os.dart
@@ -13,8 +13,6 @@ import '../utils.dart';
import '../watch_event.dart';
import 'resubscribable.dart';
-import 'package:path/path.dart' as p;
-
/// Uses the FSEvents subsystem to watch for filesystem events.
///
/// FSEvents has two main idiosyncrasies that this class works around. First, it
@@ -337,7 +335,7 @@ class _MacOSDirectoryWatcher implements ManuallyClosedDirectoryWatcher {
/// Emit an error, then close the watcher.
void _emitError(error, StackTrace stackTrace) {
- _eventsController.add(error, stackTrace);
+ _eventsController.addError(error, stackTrace);
close();
}
« no previous file with comments | « pkg/watcher/lib/src/directory_watcher/linux.dart ('k') | pkg/watcher/lib/src/directory_watcher/polling.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698