Move unclosed array check to stage 2

This commit is contained in:
John Keiser
2020-06-05 12:36:38 -07:00
parent 7a69da16e4
commit ed0c815735
6 changed files with 5 additions and 28 deletions
@@ -102,8 +102,6 @@ namespace westmere {
WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, size_t _len, dom::document &_doc) noexcept {
error_code err = stage1(_buf, _len, false);
if (err) { return err; }
err = check_for_unclosed_array();
if (err) { return err; }
return stage2(_doc);
}