Index: sdk/lib/async/stream_pipe.dart |
diff --git a/sdk/lib/async/stream_pipe.dart b/sdk/lib/async/stream_pipe.dart |
index 58acd4f8b47b23e5fdfbf55e2038515452bf9564..d26b0c5f64c86fc97c1df3c06a879e81c9c480fd 100644 |
--- a/sdk/lib/async/stream_pipe.dart |
+++ b/sdk/lib/async/stream_pipe.dart |
@@ -326,9 +326,6 @@ class _TakeStream<T> extends _ForwardingStream<T, T> { |
Function onError, |
void onDone(), |
bool cancelOnError) { |
- if (_count == 0) { |
- return new _DoneStreamSubscription<T>(onDone); |
- } |
return new _StateStreamSubscription<T>( |
this, onData, onError, onDone, cancelOnError, _count); |
} |