mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Replace splice with push and pop
This commit is contained in:
@@ -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("");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user