Skip to content

Commit

Permalink
child_process: remove unused argument
Browse files Browse the repository at this point in the history
The internal validateTimeout() takes a single parameter, so do not pass
a second value.

PR-URL: #37923
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott authored and ruyadorno committed Mar 30, 2021
1 parent 0fe3c7e commit 377830f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ function abortChildProcess(child, killSignal) {

function spawn(file, args, options) {
options = normalizeSpawnArguments(file, args, options);
validateTimeout(options.timeout, 'options.timeout');
validateTimeout(options.timeout);
validateAbortSignal(options.signal, 'options.signal');
const killSignal = sanitizeKillSignal(options.killSignal);
const child = new ChildProcess();
Expand Down

0 comments on commit 377830f

Please sign in to comment.