Skip to content

Commit d2692c6

Browse files
aduh95danielleadams
authored andcommitted
cluster: add trailing commas in source files
PR-URL: #46695 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent f1b7982 commit d2692c6

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

lib/.eslintrc.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ overrides:
261261
- ./internal/assert.js
262262
- ./internal/child_process/*.js
263263
- ./internal/cli_table.js
264+
- ./internal/cluster/*.js
264265
- ./internal/debugger/inspect.js
265266
- ./internal/events/*.js
266267
- ./internal/fixed_queue.js

lib/internal/cluster/child.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cluster._setupWorker = function() {
3535
const worker = new Worker({
3636
id: +process.env.NODE_UNIQUE_ID | 0,
3737
process: process,
38-
state: 'online'
38+
state: 'online',
3939
});
4040

4141
cluster.worker = worker;
@@ -91,7 +91,7 @@ cluster._getServer = function(obj, options, cb) {
9191
act: 'queryServer',
9292
index,
9393
data: null,
94-
...options
94+
...options,
9595
};
9696

9797
message.address = address;

lib/internal/cluster/primary.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const {
1212
const {
1313
codes: {
1414
ERR_SOCKET_BAD_PORT,
15-
}
15+
},
1616
} = require('internal/errors');
1717

1818
const assert = require('internal/assert');
@@ -66,7 +66,7 @@ cluster.setupPrimary = function(options) {
6666
execArgv: process.execArgv,
6767
silent: false,
6868
...cluster.settings,
69-
...options
69+
...options,
7070
};
7171

7272
// Tell V8 to write profile data for each process to a separate file.
@@ -135,7 +135,7 @@ function createWorkerProcess(id, env) {
135135
execArgv: execArgv,
136136
stdio: cluster.settings.stdio,
137137
gid: cluster.settings.gid,
138-
uid: cluster.settings.uid
138+
uid: cluster.settings.uid,
139139
});
140140
}
141141

@@ -164,7 +164,7 @@ cluster.fork = function(env) {
164164
const workerProcess = createWorkerProcess(id, env);
165165
const worker = new Worker({
166166
id: id,
167-
process: workerProcess
167+
process: workerProcess,
168168
});
169169

170170
worker.on('message', function(message, handle) {
@@ -316,7 +316,7 @@ function queryServer(worker, message) {
316316
key,
317317
ack: message.seq,
318318
data,
319-
...reply
319+
...reply,
320320
}, handle);
321321
});
322322
}
@@ -326,7 +326,7 @@ function listening(worker, message) {
326326
addressType: message.addressType,
327327
address: message.address,
328328
port: message.port,
329-
fd: message.fd
329+
fd: message.fd,
330330
};
331331

332332
worker.state = 'listening';

lib/internal/cluster/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77

88
module.exports = {
99
sendHelper,
10-
internal
10+
internal,
1111
};
1212

1313
const callbacks = new SafeMap();

0 commit comments

Comments
 (0)