Skip to content

Commit

Permalink
docs: updated docs for always-return
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamund Ferguson committed May 25, 2016
1 parent 09feab1 commit b72d831
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Ensure that inside a `then()` you make sure to `return` a new promise or value.
See http://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html (rule #5)
for more info on why that's a good idea.

We also allow someone to `throw` inside a `then()` which is essentially the same as `return Promise.reject()`.

#### Valid

```js
Expand Down

0 comments on commit b72d831

Please sign in to comment.