Skip to content

Commit

Permalink
Fix code example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Attardi committed Sep 21, 2019
1 parent ce249e2 commit 0cd1a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import promisePoller, { CANCEL_TOKEN } from 'promise-poller';

const taskFn = () => {
return new Promise((resolve, reject) => {
doAsyncStuff.then(resolve, error => {
doAsyncStuff().then(resolve, error => {
if (error === 'invalid password') {
reject(CANCEL_TOKEN); // will cancel polling
} else {
Expand Down

0 comments on commit 0cd1a4e

Please sign in to comment.