Skip to content

Commit

Permalink
cluster: add trailing commas in source files
Browse files Browse the repository at this point in the history
PR-URL: #46695
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
aduh95 authored and targos committed Mar 13, 2023
1 parent d48ed95 commit 16bbbac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions lib/.eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/cluster/child.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -92,7 +92,7 @@ cluster._getServer = function(obj, options, cb) {
act: 'queryServer',
index,
data: null,
...options
...options,
};

message.address = address;
Expand Down
12 changes: 6 additions & 6 deletions lib/internal/cluster/primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const {
const {
codes: {
ERR_SOCKET_BAD_PORT,
}
},
} = require('internal/errors');

const assert = require('internal/assert');
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,
});
}

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -316,7 +316,7 @@ function queryServer(worker, message) {
key,
ack: message.seq,
data,
...reply
...reply,
}, handle);
});
}
Expand All @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/cluster/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {

module.exports = {
sendHelper,
internal
internal,
};

const callbacks = new SafeMap();
Expand Down

0 comments on commit 16bbbac

Please sign in to comment.