Skip to content

Commit

Permalink
Merge pull request #162 from zzzgit/patch-1
Browse files Browse the repository at this point in the history
Update catch-or-return.md
  • Loading branch information
xjamundx committed Jul 8, 2020
2 parents 9c538f8 + 56a0675 commit 3cf54c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/catch-or-return.md
Expand Up @@ -22,7 +22,7 @@ function doSomethingElse() {
myPromise.then(doSomething)
myPromise.then(doSomething, catchErrors) // catch() may be a little better
function doSomethingElse() {
myPromise.then(doSomething)
return myPromise.then(doSomething)
}
```

Expand Down

0 comments on commit 3cf54c6

Please sign in to comment.