Use comment iso type checking

This commit is contained in:
Reinier Criel 2025-11-03 08:12:48 -08:00
parent bffb1995bd
commit 9a0b6f45bb
2 changed files with 6 additions and 4 deletions

View file

@ -14,6 +14,7 @@ const argv = process.argv.slice(2);
setEcoSystem(ECOSYSTEM_PY);
initializePackageManager(packageManagerName);
const exitCode = await main(argv);
var exitCode = await main(argv);
process.exit(typeof exitCode === 'number' ? exitCode : 1);
// @ts-expect-error scanCommand can return an empty array in main
process.exit(exitCode);

View file

@ -14,6 +14,7 @@ const argv = process.argv.slice(2);
setEcoSystem(ECOSYSTEM_PY);
initializePackageManager(packageManagerName);
const exitCode = await main(argv);
var exitCode = await main(argv);
process.exit(typeof exitCode === 'number' ? exitCode : 1);
// @ts-expect-error scanCommand can return an empty array in main
process.exit(exitCode);