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:
Konstantin Shcheglov 2017-03-28 09:42:33 -07:00
parent 27ab6478b9
commit 9dd0668ae2

View file

@ -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.