File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ jobs:
177
177
with :
178
178
github-token : ${{ steps.setup.outputs.token }}
179
179
script : |
180
- let body = undefined
180
+ let body = ''
181
181
try {
182
182
const name = process.env.PACKAGE_TO_UPGRADE
183
183
const version = `${name.match(/git-lfs/) ? 'v' : ''}${process.env.UPGRADE_TO_VERSION}`
@@ -189,7 +189,7 @@ jobs:
189
189
const { data } = await github.rest.search.issuesAndPullRequests({
190
190
q: `"[New ${name.replace(/^mingw-w64-/, '')} version]" ${version} in:title ${terms}`,
191
191
})
192
- if (data.total_count) body = `${body && `${body}\n\n`}This closes ${data.items[0].html_url}`
192
+ if (data.total_count) body = `${body ? `${body}\n\n` : '' }This closes ${data.items[0].html_url}`
193
193
} catch (e) {
194
194
console.log(e)
195
195
}
You can’t perform that action at this time.
0 commit comments