Skip to content

Commit 377830f

Browse files
Trottruyadorno
authored andcommitted
child_process: remove unused argument
The internal validateTimeout() takes a single parameter, so do not pass a second value. PR-URL: #37923 Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 0fe3c7e commit 377830f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/child_process.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ function abortChildProcess(child, killSignal) {
600600

601601
function spawn(file, args, options) {
602602
options = normalizeSpawnArguments(file, args, options);
603-
validateTimeout(options.timeout, 'options.timeout');
603+
validateTimeout(options.timeout);
604604
validateAbortSignal(options.signal, 'options.signal');
605605
const killSignal = sanitizeKillSignal(options.killSignal);
606606
const child = new ChildProcess();

0 commit comments

Comments
 (0)