Fix typo in Simple Swift Promises

This commit is contained in:
Shadowfacts 2021-11-15 23:48:57 -05:00
parent 2eaaceba70
commit 5849412610
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ public extension Promise {
addHandler { (parentResult) in
let newPromise = mapper(parentResult)
newPromise.addHandler(next.resolve)
newPromise.addHandler(next.reject)
newPromise.addCatcher(next.reject)
}
addCatcher(next.reject)
return next