Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster: add trailing commas in source files #46695

Merged
merged 1 commit into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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