Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index a5ae2f509d03cc92bb8d5f8961150650cdf24d82..ef467ac5577b40c05aab9fa7709fb07cfda4c0b2 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -478,8 +478,7 @@ class _File extends _FileBase implements File { |
openRead().listen( |
(d) => chunks.add(d), |
onDone: () { |
- var result = chunks.readBytes(chunks.length); |
- if (result == null) result = <int>[]; |
+ var result = chunks.readBytes(); |
completer.complete(result); |
}, |
onError: (e) { |