This commit is contained in:
+1
-2
@@ -261,8 +261,7 @@ Error writeOC(Writer_c auto &writer, auto const &val) noexcept {
|
||||
OX_RETURN_ERROR(model(&handler, &val));
|
||||
Json::StreamWriterBuilder const jsonBuilder;
|
||||
auto const str = Json::writeString(jsonBuilder, ocWriter.m_json);
|
||||
writer.write(str.data(), str.size());
|
||||
return {};
|
||||
return writer.write(str.data(), str.size());
|
||||
}
|
||||
|
||||
Result<Buffer> writeOC(auto const &val) noexcept {
|
||||
|
||||
Reference in New Issue
Block a user