Fix typo in Simple Swift Promises
This commit is contained in:
parent
2eaaceba70
commit
5849412610
|
@ -178,7 +178,7 @@ public extension Promise {
|
||||||
addHandler { (parentResult) in
|
addHandler { (parentResult) in
|
||||||
let newPromise = mapper(parentResult)
|
let newPromise = mapper(parentResult)
|
||||||
newPromise.addHandler(next.resolve)
|
newPromise.addHandler(next.resolve)
|
||||||
newPromise.addHandler(next.reject)
|
newPromise.addCatcher(next.reject)
|
||||||
}
|
}
|
||||||
addCatcher(next.reject)
|
addCatcher(next.reject)
|
||||||
return next
|
return next
|
||||||
|
|
Loading…
Reference in New Issue