Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow null as a resolution value

  • Loading branch information...
commit ac2750a60dbb4b53da36a5b5b85071ce2eb61c43 1 parent b75a159
@ForbesLindesay authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -60,7 +60,7 @@
}
function resolve(success, value) {
if (resolved) return;
- if (success && typeof value === 'object' && typeof value.then === 'function') {
+ if (success && value && typeof value.then === 'function') {
value.then(fulfill, reject)
return
}
Please sign in to comment.
Something went wrong with that request. Please try again.