Skip to content
Myr

Coerce process.exitCode to number to match local usage (#2209)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by GitHub · parent 2c6a7bb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/command.js+1 added-1 removed
2390 unmodified lines
2391 */23922393 help(contextOptions) {2394 this.outputHelp(contextOptions);2395 let exitCode = process.exitCode || 0;2395 let exitCode = Number(process.exitCode ?? 0); // process.exitCode does allow a string of an integer, but we prefer just a number2396 if (2397 exitCode === 0 &&2398 contextOptions &&2399 typeof contextOptions !== 'function' &&
110 unmodified lines