mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:24:58 +00:00
AK: Use JsonArray::append
when parsing array
This commit is contained in:
parent
8134dccdc7
commit
ada6dbf636
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ ErrorOr<JsonValue> JsonParser::parse_array()
|
|||
if (peek() == ']')
|
||||
break;
|
||||
auto element = TRY(parse_helper());
|
||||
array.must_append(move(element));
|
||||
TRY(array.append(move(element)));
|
||||
ignore_while(is_space);
|
||||
if (peek() == ']')
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue