Closed benjaminjkraft closed 1 year ago
Came across this while evaluating the library -- it looks like it was inadvertently doing Promise.resolve(Promise.reject(err)). That's mostly equivalent enough to Promise.reject(err), but we might as well just do the simple thing.
Promise.resolve(Promise.reject(err))
Promise.reject(err)
Ah yeah makes sense.
Thanks!
Came across this while evaluating the library -- it looks like it was inadvertently doing
Promise.resolve(Promise.reject(err))
. That's mostly equivalent enough toPromise.reject(err)
, but we might as well just do the simple thing.