GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix the lint of an example in cluster.md · nodejs/node@9a29b50

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • cluster.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/cluster.md‎

Copy file name to clipboardExpand all lines: doc/api/cluster.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.