Skip to content

Commit dba78e2

Browse files
jvijtiukmichalvasko
authored andcommitted
parser json BUGFIX remove unused lydjson_data_skip() array sublevel checks
Signed-off-by: Juraj Vijtiuk <[email protected]>
1 parent 2e88368 commit dba78e2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/parser_json.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,6 @@ lydjson_data_skip(struct lyjson_ctx *jsonctx)
303303
sublevels++;
304304
} else if ((status == LYJSON_OBJECT) && (current == LYJSON_OBJECT_CLOSED)) {
305305
sublevels--;
306-
} else if ((status == LYJSON_ARRAY) && (current == LYJSON_ARRAY_CLOSED)) {
307-
sublevels--;
308306
}
309307
} while (current != status + 1 || sublevels);
310308
/* open the next sibling */

0 commit comments

Comments
 (0)