fix: remove unused code (#2202)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack 2024-07-18 13:39:13 -06:00 committed by GitHub
parent dc82617b24
commit 6b2903bdce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 9 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View file

@ -1,6 +1,5 @@
const path = require('path')
process.env.TESTING = "1"
process.env.GITHUB_WORKSPACE = path.join(
path.resolve(__dirname, '..'), '.'
)

View file

@ -291,11 +291,8 @@ export async function run(): Promise<void> {
}
}
/* istanbul ignore if */
if (!process.env.TESTING) {
// eslint-disable-next-line github/no-then
run().catch(e => {
core.setFailed(e.message || e)
process.exit(1)
})
}
// eslint-disable-next-line github/no-then
run().catch(e => {
core.setFailed(e.message || e)
process.exit(1)
})