Skip to content

Commit 9a29b50

Browse files
yorkieFishrock123
authored andcommitted
doc: fix the lint of an example in cluster.md
PR-URL: #6516 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0bca959 commit 9a29b50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/cluster.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ Similar to the `cluster.on('exit')` event, but specific to this worker.
140140
```js
141141
const worker = cluster.fork();
142142
worker.on('exit', (code, signal) => {
143-
if( signal ) {
143+
if (signal) {
144144
console.log(`worker was killed by signal: ${signal}`);
145-
} else if( code !== 0 ) {
145+
} else if (code !== 0) {
146146
console.log(`worker exited with error code: ${code}`);
147147
} else {
148148
console.log('worker success!');
@@ -285,7 +285,7 @@ if (cluster.isMaster) {
285285
server.listen(8000);
286286

287287
process.on('message', (msg) => {
288-
if(msg === 'shutdown') {
288+
if (msg === 'shutdown') {
289289
// initiate graceful close of any connections to server
290290
}
291291
});

0 commit comments

Comments
 (0)