mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Fix for DirectoryWatcher.handleError() closure signature.
I missed the fact that the closure must have either one, or two arguments, I see failures at runtime in internal logs. R=brianwilkerson@google.com BUG= Review-Url: https://codereview.chromium.org/2782463003 .
This commit is contained in:
parent
27ab6478b9
commit
9dd0668ae2
1 changed files with 3 additions and 3 deletions
|
@ -234,9 +234,9 @@ class _PhysicalFolder extends _PhysicalResource implements Folder {
|
|||
_PhysicalFolder(io.Directory directory) : super(directory);
|
||||
|
||||
@override
|
||||
Stream<WatchEvent> get changes => new DirectoryWatcher(_entry.path)
|
||||
.events
|
||||
.handleError(() {}, test: (error) => error is io.FileSystemException);
|
||||
Stream<WatchEvent> get changes =>
|
||||
new DirectoryWatcher(_entry.path).events.handleError((error) {},
|
||||
test: (error) => error is io.FileSystemException);
|
||||
|
||||
/**
|
||||
* Return the underlying file being represented by this wrapper.
|
||||
|
|
Loading…
Reference in a new issue