Replace splice with push and pop

This commit is contained in:
Mario Campos
2026-09-18 13:47:06 -05:00
parent bc0efd6d91
commit 977b29b897

View File

@@ -161,8 +161,9 @@ export function addBodyLinesToUnreleasedSection(
return;
}
// Insert `lines` after the first blank line.
unreleasedSection.bodyLines.splice(1, 0, ...lines);
unreleasedSection.bodyLines.pop(); // Remove the last empty line.
unreleasedSection.bodyLines.push(...lines);
unreleasedSection.bodyLines.push("");
}
/**