Don't check depth at the end (unnecessary check)

This commit is contained in:
John Keiser 2020-08-07 11:06:33 -07:00
parent 57eba21ee5
commit abd1399a7f
1 changed files with 0 additions and 2 deletions

View File

@ -188,8 +188,6 @@ document_end:
dom_parser.next_structural_index = uint32_t(next_structural - &dom_parser.structural_indexes[0]);
if (depth != 0) { log_error("Unclosed objects or arrays!"); return TAPE_ERROR; }
// If we didn't make it to the end, it's an error
if ( !STREAMING && dom_parser.next_structural_index != dom_parser.n_structural_indexes ) {
log_error("More than one JSON value at the root of the document, or extra characters at the end of the JSON!");