Skip to content

Commit

Permalink
Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Burtchaell committed Jul 13, 2015
1 parent 0f222bc commit 68146fc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ export default function promiseMiddleware(next) {

/**
* Dispatch the first async handler. This tells the
* reducer that a async action has been dispatched.
* reducer that an async action has been dispatched.
*/
next({
type: PENDING
});

/**
* Return the promise. This will allow us to return
* either the fulfilled promise object or the rehjected
* promise object.
* Return either the fulfilled action object or the rejected
* action object.
*/
return promise.then(
payload => next({
Expand Down

0 comments on commit 68146fc

Please sign in to comment.