Skip to content

Commit

Permalink
Remove some unused code (Math.abs() on exit codes) (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored and sindresorhus committed May 7, 2019
1 parent 0070738 commit 31c89d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function getCode({error = {}}, code) {
}

if (Number.isInteger(code)) {
return [util.getSystemErrorName(-Math.abs(code)), Math.abs(code)];
return [util.getSystemErrorName(-code), code];
}

return [];
Expand Down

0 comments on commit 31c89d1

Please sign in to comment.