We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c77ca2 commit fa9681aCopy full SHA for fa9681a
2 files changed
src/utils/output.ts
@@ -40,7 +40,7 @@ export const fileResponseSortFn = (i: FileResponse, j: FileResponse): number =>
40
41
export const exitCodeAsNumber = (): number | undefined => {
42
try {
43
- return typeof process.exitCode === 'string' ? parseInt(process.exitCode, 10) : process.exitCode;
+ return typeof process.exitCode === 'string' ? parseInt(process.exitCode, 10) : process.exitCode ?? undefined;
44
} catch {
45
// it *could* be a string that fails to parse to int?
46
return undefined;
0 commit comments