Skip to content

Commit

Permalink
fix: remove unused code (#2202)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
jackton1 and actions-user authored Jul 18, 2024
1 parent dc82617 commit 6b2903b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
13 changes: 5 additions & 8 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion jest/setupEnv.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require('path')

process.env.TESTING = "1"
process.env.GITHUB_WORKSPACE = path.join(
path.resolve(__dirname, '..'), '.'
)
Expand Down
13 changes: 5 additions & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

0 comments on commit 6b2903b

Please sign in to comment.