Simplify a std/json while as an if

This commit is contained in:
Nigel Tao committed 2020-04-03 12:35:18 +11:00
1 parent 161fa6ae4a
commit ecd3285567
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -21189,7 +21189,7 @@ wuffs_json__decoder__decode_tokens(wuffs_json__decoder* self,
switch (coro_susp_point) {
WUFFS_BASE__COROUTINE_SUSPENSION_POINT_0;
while (self->private_impl.f_end_of_data) {
if (self->private_impl.f_end_of_data) {
status = wuffs_base__make_status(wuffs_base__note__end_of_data);
goto ok;
}