Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc,cluster: fix the lint of an example
  • Loading branch information
yorkie committed May 2, 2016
commit deacd8bae67da1bb1543b5d7c85cc221beb394fa
4 changes: 2 additions & 2 deletions doc/api/cluster.md
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