Skip to content

Commit

Permalink
doc: fix the lint of an example in cluster.md
Browse files Browse the repository at this point in the history
PR-URL: #6516
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
yorkie authored and Myles Borins committed Jun 24, 2016
1 parent e811bea commit 9a7d6fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/cluster.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ Similar to the `cluster.on('exit')` event, but specific to this worker.
```js
const worker = cluster.fork();
worker.on('exit', (code, signal) => {
if( signal ) {
if (signal) {
console.log(`worker was killed by signal: ${signal}`);
} else if( code !== 0 ) {
} else if (code !== 0) {
console.log(`worker exited with error code: ${code}`);
} else {
console.log('worker success!');
Expand Down Expand Up @@ -285,7 +285,7 @@ if (cluster.isMaster) {
server.listen(8000);

process.on('message', (msg) => {
if(msg === 'shutdown') {
if (msg === 'shutdown') {
// initiate graceful close of any connections to server
}
});
Expand Down

0 comments on commit 9a7d6fb

Please sign in to comment.