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

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

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 | « sdk/lib/io/list_stream_impl.dart ('k') | sdk/lib/io/stream_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket_stream_impl.dart
diff --git a/sdk/lib/io/socket_stream_impl.dart b/sdk/lib/io/socket_stream_impl.dart
index c8799b1ba7da7cf9d22d21f7e669890ec83a09bd..a824ffd030f20769749d31f16b8aa9848f382420 100644
--- a/sdk/lib/io/socket_stream_impl.dart
+++ b/sdk/lib/io/socket_stream_impl.dart
@@ -14,7 +14,7 @@ class _SocketInputStream implements InputStream {
int readInto(List<int> buffer, [int offset = 0, int len]) {
if (_closed) return null;
- if (len === null) len = buffer.length;
+ if (len == null) len = buffer.length;
if (offset < 0) throw new StreamException("Illegal offset $offset");
if (len < 0) throw new StreamException("Illegal length $len");
return _socket.readList(buffer, offset, len);
@@ -49,7 +49,7 @@ class _SocketInputStream implements InputStream {
void _onClosed() {
_closed = true;
- if (_clientCloseHandler !== null) {
+ if (_clientCloseHandler != null) {
_clientCloseHandler();
}
}
« no previous file with comments | « sdk/lib/io/list_stream_impl.dart ('k') | sdk/lib/io/stream_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698