1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Remove the manual comma.

This commit is contained in:
Sandu Liviu Catalin 2022-09-17 23:49:37 +03:00
parent 08106156c4
commit 5f20ffc4de

View File

@ -350,16 +350,12 @@ SQRESULT CtxJSON::SerializeAt(HSQUIRRELVM vm, SQInteger idx) // NOLINT(misc-no-r
{ {
return r; // Propagate the error return r; // Propagate the error
} }
// Include the separator manually
mOutput.push_back(',');
} break; } break;
case OT_ARRAY: { case OT_ARRAY: {
if (SQRESULT r = SerializeArray(vm, idx); SQ_FAILED(r)) if (SQRESULT r = SerializeArray(vm, idx); SQ_FAILED(r))
{ {
return r; // Propagate the error return r; // Propagate the error
} }
// Include the separator manually
mOutput.push_back(',');
} break; } break;
case OT_INSTANCE: { case OT_INSTANCE: {
if (SQRESULT r = SerializeInstance(vm, idx); SQ_FAILED(r)) if (SQRESULT r = SerializeInstance(vm, idx); SQ_FAILED(r))