Skip to content

Commit

Permalink
It is no longer necessary to check separately for trailing content.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Mar 25, 2023
1 parent 59025bc commit 9bef628
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions benchmark/json2msgpack/simdjson_ondemand.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 9bef628

Please sign in to comment.