fix: remove unused code (#2202)

Co-authored-by: GitHub Action <[email protected]>
This commit is contained in:
Tonye Jack
2024-07-18 19:39:13 +00:00
committed by GitHub
co-authored by GitHub Action
parent dc82617b24
commit 6b2903bdce
4 changed files with 11 additions and 18 deletions
Generated Vendored
+5 -8
View File
@@ -1925,14 +1925,11 @@ function run() {
});
}
exports.run = run;
/* 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);
});
/***/ }),
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
-1
View File
@@ -1,6 +1,5 @@
const path = require('path')
process.env.TESTING = "1"
process.env.GITHUB_WORKSPACE = path.join(
path.resolve(__dirname, '..'), '.'
)
+5 -8
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)
})