mirror of
https://github.com/tj-actions/changed-files
synced 2024-09-08 01:50:41 +02:00
fix: remove unused code (#2202)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
dc82617b24
commit
6b2903bdce
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
|
@ -1,6 +1,5 @@
|
|||
const path = require('path')
|
||||
|
||||
process.env.TESTING = "1"
|
||||
process.env.GITHUB_WORKSPACE = path.join(
|
||||
path.resolve(__dirname, '..'), '.'
|
||||
)
|
||||
|
|
13
src/main.ts
13
src/main.ts
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue