mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-14 12:31:14 +00:00
cleanup previousBody variable creation
This commit is contained in:
parent
0ce3e0c6ca
commit
eb64714cc1
1 changed files with 1 additions and 3 deletions
|
|
@ -35,10 +35,8 @@ async function run() {
|
|||
body = message;
|
||||
}
|
||||
|
||||
let previousBody;
|
||||
if (append && previous) previousBody = previous.body;
|
||||
|
||||
if (previous) {
|
||||
const previousBody = append && previous.body;
|
||||
if (replace) {
|
||||
await deleteComment(octokit, repo, previous.id);
|
||||
await createComment(octokit, repo, number, body, header, previousBody);
|
||||
|
|
|
|||
Loading…
Reference in a new issue