Skip to content

Commit

Permalink
Updating the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andyfleming authored Jan 14, 2020
1 parent a099d07 commit 2efc2f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function interval(func, intervalLength, options = {}) {
setTimeout(() => {

const returnVal = func(currentIteration, stop)
// Any valid Promise implementation must have a `then` method

// Ensure that the value returned is a promise
if (!isPromise(returnVal)) {
rootPromiseReject(new Error('Return value of "func" must be a Promise.'))
return
Expand Down

0 comments on commit 2efc2f7

Please # to comment.