Reformat source (#144)

This commit is contained in:
David Neto 2025-02-22 04:28:29 -05:00 committed by GitHub
parent 4954832054
commit 40461f0f95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -104,9 +104,9 @@ bool RapidDeserializer::deserialize(dap::any* v) const {
return false; return false;
} }
*v = obj; *v = obj;
} else if (json()->IsArray()){ } else if (json()->IsArray()) {
dap::array<any> arr; dap::array<any> arr;
if (!deserialize(&arr)){ if (!deserialize(&arr)) {
return false; return false;
} }
*v = arr; *v = arr;
@ -220,7 +220,8 @@ bool RapidSerializer::serialize(const dap::any& v) {
return serialize(v.get<dap::object>()); return serialize(v.get<dap::object>());
} else if (v.is<dap::null>()) { } else if (v.is<dap::null>()) {
} else { } else {
// reachable if array or custom serialized type is nested inside other dap::object // reachable if array or custom serialized type is nested inside other
// dap::object
auto type = get_any_type(v); auto type = get_any_type(v);
auto value = get_any_val(v); auto value = get_any_val(v);
if (type && value) { if (type && value) {