Index: sdk/lib/io/io_sink.dart |
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart |
index 45390d88375c6552ce068286a2ea0e0d5bd8e2c6..e2ea2bd63abb9bc065d8108862febc832f6c074a 100644 |
--- a/sdk/lib/io/io_sink.dart |
+++ b/sdk/lib/io/io_sink.dart |
@@ -78,7 +78,7 @@ class _StreamSinkImpl<T> implements StreamSink<T> { |
bool _isBound = false; |
bool _hasError = false; |
- _StreamSinkImpl(StreamConsumer<T> this._target) { |
+ _StreamSinkImpl(this._target) { |
_doneFuture = _doneCompleter.future; |
} |
@@ -87,9 +87,8 @@ class _StreamSinkImpl<T> implements StreamSink<T> { |
_controller.add(data); |
} |
- void addError(error, [StackTrace stackTrace]) { |
- _controller.addError(error, stackTrace); |
- } |
+ void addError(error, [StackTrace stackTrace]) => |
+ _controller.addError(error, stackTrace); |
Future addStream(Stream<T> stream) { |
if (_isBound) { |