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

Unified Diff: pkg/http_parser/lib/src/web_socket.dart

Issue 247003008: Fix an analyzer error in http_parser's WebSocket implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_parser/lib/src/web_socket.dart
diff --git a/pkg/http_parser/lib/src/web_socket.dart b/pkg/http_parser/lib/src/web_socket.dart
index 98603ceca19c5ef89800917a3254b5e25c8355ac..77c9d2b873a41e2c6875f866c95ba748ceae7acf 100644
--- a/pkg/http_parser/lib/src/web_socket.dart
+++ b/pkg/http_parser/lib/src/web_socket.dart
@@ -86,7 +86,7 @@ abstract class CompatibleWebSocket implements Stream, StreamSink {
throw new ArgumentError("If stream isn't also a StreamSink, sink must "
"be passed explicitly.");
}
- sink = stream;
+ sink = stream as StreamSink;
}
return new _WebSocketImpl._fromSocket(stream, sink, serverSide);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698