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

fix(lib-storage): use correct return type for done() #5512

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

nwalters512
Copy link
Contributor

@nwalters512 nwalters512 commented Nov 21, 2023

Description

The return types for Upload#done() incorrectly included AbortMultipartUploadCommandOutput in the return type. In reality, it's clear that only CompleteMultipartUploadCommandOutput will be returned. If to upload is aborted, the returned promise is rejected with an AbortError.

Fixes #5513.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@nwalters512 nwalters512 requested a review from a team as a code owner November 21, 2023 22:30
@nwalters512
Copy link
Contributor Author

Sorry about the failing CI run, I'm working on getting things passing locally.

@kuhe kuhe merged commit 7e1e15e into aws:main Nov 28, 2023
1 check passed
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lib-storage Upload.done() has wrong return type
2 participants