Skip to content

Commit 37d6019

Browse files
child_process: removes unrelated change ( due to lint auto fix )
refs: nodejs#20749
1 parent e1199c2 commit 37d6019

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/child_process.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ const _deprecatedCustomFds = deprecate(
397397
return fd === -1 ? 'pipe' : fd;
398398
});
399399
}, 'child_process: options.customFds option is deprecated. ' +
400-
'Use options.stdio instead.', 'DEP0006');
400+
'Use options.stdio instead.', 'DEP0006');
401401

402402
function _convertCustomFds(options) {
403403
if (options.customFds && !options.stdio) {
@@ -414,7 +414,7 @@ function normalizeSpawnArguments(file, args, options) {
414414
if (Array.isArray(args)) {
415415
args = args.slice(0);
416416
} else if (args !== undefined &&
417-
(args === null || typeof args !== 'object')) {
417+
(args === null || typeof args !== 'object')) {
418418
throw new ERR_INVALID_ARG_TYPE('args', 'object', args);
419419
} else {
420420
options = args;
@@ -428,13 +428,13 @@ function normalizeSpawnArguments(file, args, options) {
428428

429429
// Validate the cwd, if present.
430430
if (options.cwd != null &&
431-
typeof options.cwd !== 'string') {
431+
typeof options.cwd !== 'string') {
432432
throw new ERR_INVALID_ARG_TYPE('options.cwd', 'string', options.cwd);
433433
}
434434

435435
// Validate detached, if present.
436436
if (options.detached != null &&
437-
typeof options.detached !== 'boolean') {
437+
typeof options.detached !== 'boolean') {
438438
throw new ERR_INVALID_ARG_TYPE('options.detached',
439439
'boolean', options.detached);
440440
}
@@ -451,28 +451,28 @@ function normalizeSpawnArguments(file, args, options) {
451451

452452
// Validate the shell, if present.
453453
if (options.shell != null &&
454-
typeof options.shell !== 'boolean' &&
455-
typeof options.shell !== 'string') {
454+
typeof options.shell !== 'boolean' &&
455+
typeof options.shell !== 'string') {
456456
throw new ERR_INVALID_ARG_TYPE('options.shell',
457457
['boolean', 'string'], options.shell);
458458
}
459459

460460
// Validate argv0, if present.
461461
if (options.argv0 != null &&
462-
typeof options.argv0 !== 'string') {
462+
typeof options.argv0 !== 'string') {
463463
throw new ERR_INVALID_ARG_TYPE('options.argv0', 'string', options.argv0);
464464
}
465465

466466
// Validate windowsHide, if present.
467467
if (options.windowsHide != null &&
468-
typeof options.windowsHide !== 'boolean') {
468+
typeof options.windowsHide !== 'boolean') {
469469
throw new ERR_INVALID_ARG_TYPE('options.windowsHide',
470470
'boolean', options.windowsHide);
471471
}
472472

473473
// Validate windowsVerbatimArguments, if present.
474474
if (options.windowsVerbatimArguments != null &&
475-
typeof options.windowsVerbatimArguments !== 'boolean') {
475+
typeof options.windowsVerbatimArguments !== 'boolean') {
476476
throw new ERR_INVALID_ARG_TYPE('options.windowsVerbatimArguments',
477477
'boolean',
478478
options.windowsVerbatimArguments);

0 commit comments

Comments
 (0)