cluster: add trailing commas in source files

PR-URL: https://github.com/nodejs/node/pull/46695
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel authored and Michaël Zasso committed 2023-03-13 11:22:46 +01:00
1 parent d48ed95a66
commit 16bbbacba8
4 files changed
+10 -9

No files matched your search

+1
View File
@@ -273,6 +273,7 @@ overrides:
- ./internal/assert.js
- ./internal/child_process/*.js
- ./internal/cli_table.js
- ./internal/cluster/*.js
- ./internal/debugger/inspect.js
- ./internal/events/*.js
- ./internal/fixed_queue.js
+2 -2
View File
@@ -36,7 +36,7 @@ cluster._setupWorker = function() {
const worker = new Worker({
id: +process.env.NODE_UNIQUE_ID | 0,
process: process,
state: 'online'
state: 'online',
});
cluster.worker = worker;
@@ -92,7 +92,7 @@ cluster._getServer = function(obj, options, cb) {
act: 'queryServer',
index,
data: null,
...options
...options,
};
message.address = address;
+6 -6
View File
@@ -12,7 +12,7 @@ const {
const {
codes: {
ERR_SOCKET_BAD_PORT,
}
},
} = require('internal/errors');
const assert = require('internal/assert');
@@ -66,7 +66,7 @@ cluster.setupPrimary = function(options) {
execArgv: process.execArgv,
silent: false,
...cluster.settings,
...options
...options,
};
// Tell V8 to write profile data for each process to a separate file.
@@ -135,7 +135,7 @@ function createWorkerProcess(id, env) {
execArgv: execArgv,
stdio: cluster.settings.stdio,
gid: cluster.settings.gid,
uid: cluster.settings.uid
uid: cluster.settings.uid,
});
}
@@ -164,7 +164,7 @@ cluster.fork = function(env) {
const workerProcess = createWorkerProcess(id, env);
const worker = new Worker({
id: id,
process: workerProcess
process: workerProcess,
});
worker.on('message', function(message, handle) {
@@ -316,7 +316,7 @@ function queryServer(worker, message) {
key,
ack: message.seq,
data,
...reply
...reply,
}, handle);
});
}
@@ -326,7 +326,7 @@ function listening(worker, message) {
addressType: message.addressType,
address: message.address,
port: message.port,
fd: message.fd
fd: message.fd,
};
worker.state = 'listening';
+1 -1
View File
@@ -7,7 +7,7 @@ const {
module.exports = {
sendHelper,
internal
internal,
};
const callbacks = new SafeMap();