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

Unified Diff: sdk/lib/io/io_sink.dart

Issue 124753002: Code cleanup (mostly io lib and some http lib). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 6 years, 11 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
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) {

Powered by Google App Engine
This is Rietveld 408576698