refactor: modernize code to ES2020 (#220)

This commit is contained in:
Naoki Oketani
2025-05-03 04:08:29 +00:00
parent a08099359e
commit 2af7795f4f
5 changed files with 42 additions and 44 deletions

View File

@@ -47,5 +47,5 @@ export async function getExistingIssueNumber(
.filter(i => i.title === core.getInput('issue_title'))
.shift()
return iss === undefined ? null : iss.number
return iss?.number ?? null
}