8000 py/stream: Remove unnecessary check for NULL return from vstr_extend. · sparkfun/circuitpython@79ec869 · GitHub
[go: up one dir, main page]

Skip to content

Commit 79ec869

Browse files
committed
py/stream: Remove unnecessary check for NULL return from vstr_extend.
vstr_extend will now only return NULL if the vstr is a fixed buffer, which in this case it is not.
1 parent c528489 commit 79ec869

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

py/stream.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,6 @@ STATIC mp_obj_t stream_readall(mp_obj_t self_in) {
355355
} else {
356356
p = vstr_extend(&vstr, DEFAULT_BUFFER_SIZE);
357357
current_read = DEFAULT_BUFFER_SIZE;
358-
if (p == NULL) {
359-
// TODO
360-
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_OSError/*&mp_type_RuntimeError*/, "Out of memory"));
361-
}
362358
}
363359
}
364360

0 commit comments

Comments
 (0)
0