mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
It is no longer necessary to check separately for trailing content.
This commit is contained in:
@@ -100,10 +100,6 @@ simdjson2msgpack::to_msgpack(const simdjson::padded_string &json,
|
||||
recursive_processor_ref(val);
|
||||
#endif
|
||||
}
|
||||
if (doc.current_location().error() == simdjson::SUCCESS) {
|
||||
// Example of error detection - this won't be reached on twitter.json in the benchmark.
|
||||
throw "There are unexpectedly tokens after the end of the json in the json2msgpack sample data";
|
||||
}
|
||||
return std::string_view(reinterpret_cast<char *>(buf), size_t(buff - buf));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user