diff options
Diffstat (limited to 'lib/internal/child_process.js')
-rw-r--r-- | lib/internal/child_process.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js index 216a2fb85a..b88f5423ac 100644 --- a/lib/internal/child_process.js +++ b/lib/internal/child_process.js @@ -110,7 +110,7 @@ const handleConversion = { }, got: function(message, handle, emit) { - var socket = new net.Socket({handle: handle}); + var socket = new net.Socket({ handle: handle }); socket.readable = socket.writable = true; // if the socket was created by net.Server we will track the socket @@ -584,7 +584,7 @@ function setupChannel(target, channel) { options); } - options = Object.assign({swallowErrors: false}, options); + options = Object.assign({ swallowErrors: false }, options); if (this.connected) { return this._send(message, handle, options, callback); @@ -606,7 +606,7 @@ function setupChannel(target, channel) { // Support legacy function signature if (typeof options === 'boolean') { - options = {swallowErrors: options}; + options = { swallowErrors: options }; } // package messages with a handle object @@ -840,7 +840,7 @@ function _validateStdio(stdio, sync) { } if (stdio === 'ignore') { - acc.push({type: 'ignore'}); + acc.push({ type: 'ignore' }); } else if (stdio === 'pipe' || typeof stdio === 'number' && stdio < 0) { var a = { type: 'pipe', |