Skip to content

Commit

Permalink
chore: remove unused argument (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinm authored Oct 30, 2024
1 parent 5d84384 commit d52b6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/enoent.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function hookChildProcess(cp, parsed) {
// the command exists and emit an "error" instead
// See https://github.com/IndigoUnited/node-cross-spawn/issues/16
if (name === 'exit') {
const err = verifyENOENT(arg1, parsed, 'spawn');
const err = verifyENOENT(arg1, parsed);

if (err) {
return originalEmit.call(cp, 'error', err);
Expand Down

0 comments on commit d52b6b9

Please sign in to comment.