Skip to content
Myr

Remove some unused code (`Math.abs()` on exit codes) (#222)

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

authored by ehmicky · committed by Sindre Sorhus · parent 0070738 · 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:index.js+1 added-1 removed
218 unmodified lines
219 return [error.code, os.constants.errno[error.code]];220 }221222 if (Number.isInteger(code)) {223 return [util.getSystemErrorName(-Math.abs(code)), Math.abs(code)];223 return [util.getSystemErrorName(-code), code];224 }225226 return [];227}
260 unmodified lines