Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16bbbac

Browse filesBrowse files
aduh95targos
authored andcommitted
cluster: add trailing commas in source files
PR-URL: #46695 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d48ed95 commit 16bbbac
Copy full SHA for 16bbbac

File tree

Expand file treeCollapse file tree

4 files changed

+10
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+10
-9
lines changed
Open diff view settings
Collapse file

‎lib/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: lib/.eslintrc.yaml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ overrides:
273273
- ./internal/assert.js
274274
- ./internal/child_process/*.js
275275
- ./internal/cli_table.js
276+
- ./internal/cluster/*.js
276277
- ./internal/debugger/inspect.js
277278
- ./internal/events/*.js
278279
- ./internal/fixed_queue.js
Collapse file

‎lib/internal/cluster/child.js‎

Copy file name to clipboardExpand all lines: lib/internal/cluster/child.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cluster._setupWorker = function() {
3636
const worker = new Worker({
3737
id: +process.env.NODE_UNIQUE_ID | 0,
3838
process: process,
39-
state: 'online'
39+
state: 'online',
4040
});
4141

4242
cluster.worker = worker;
@@ -92,7 +92,7 @@ cluster._getServer = function(obj, options, cb) {
9292
act: 'queryServer',
9393
index,
9494
data: null,
95-
...options
95+
...options,
9696
};
9797

9898
message.address = address;
Collapse file

‎lib/internal/cluster/primary.js‎

Copy file name to clipboardExpand all lines: lib/internal/cluster/primary.js
+6-6Lines changed: 6 additions & 6 deletions
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';
Collapse file

‎lib/internal/cluster/utils.js‎

Copy file name to clipboardExpand all lines: lib/internal/cluster/utils.js
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.