Skip to content

Commit 3cf54c6

Browse files
authored
Merge pull request #162 from zzzgit/patch-1
Update catch-or-return.md
2 parents 9c538f8 + 56a0675 commit 3cf54c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/catch-or-return.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function doSomethingElse() {
2222
myPromise.then(doSomething)
2323
myPromise.then(doSomething, catchErrors) // catch() may be a little better
2424
function doSomethingElse() {
25-
myPromise.then(doSomething)
25+
return myPromise.then(doSomething)
2626
}
2727
```
2828

0 commit comments

Comments
 (0)