Skip to content

Commit 0b1f891

Browse files
committed
Removes silly destructure
1 parent 594d6b6 commit 0b1f891

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/actions/file/src/reopenIssue.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@ export async function reopenIssue(
1010
repoWithOwner?: string,
1111
screenshotRepo?: string,
1212
) {
13-
let body = {}
13+
let body: string | undefined
1414
if (finding && repoWithOwner) {
15-
body = {
16-
body: generateIssueBody(finding, screenshotRepo ?? repoWithOwner),
17-
}
15+
body = generateIssueBody(finding, screenshotRepo ?? repoWithOwner)
1816
}
1917

2018
return octokit.request(`PATCH /repos/${owner}/${repository}/issues/${issueNumber}`, {
2119
owner,
2220
repository,
2321
issue_number: issueNumber,
2422
state: 'open',
25-
...body,
23+
body,
2624
})
2725
}

0 commit comments

Comments
 (0)