Unverified Commit c59218c4 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Remove use of `Promise.finally` in polyfill (#6975)

* Remove use of Promise.finally

* Move line for clarity
parent b72396f2
......@@ -432,8 +432,12 @@ FetchTransport.prototype.open = function (xhr, onStartCallback, onProgressCallba
}
readNextChunk()
})
})['finally'](function () {
}).then(function(result) {
onFinishCallback()
return result
})['catch'](function(error) {
onFinishCallback()
return Promise.reject(error)
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment