Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a layer of indirection for defaultRejectedValue #101

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

benjaminjkraft
Copy link
Contributor

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.

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.
@timkindberg
Copy link
Owner

Ah yeah makes sense.

@timkindberg timkindberg merged commit 647c968 into timkindberg:master Jan 10, 2023
@timkindberg
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants