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

Handle missing cookies in request #53

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

foxbox-doug
Copy link
Contributor

Issue # (if available): 52

Description of changes: Handle missing cookies in change request. Log error instead of catching unhandled exception.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ckifer
Copy link
Contributor

ckifer commented Dec 13, 2022

Looks like the issue wasn't linked. Just linking #52

@jeandek jeandek self-requested a review December 13, 2022 09:47
The `cookieHeaders` parameter can be `undefined`, which is why that's checked in the function body. Updating the parameter type ensures that we can enable `@typescript-eslint/no-unnecessary-condition` in the future with no errors.
Copy link
Contributor

@jeandek jeandek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jeandek jeandek merged commit 28b70d2 into awslabs:main Dec 13, 2022
@jeandek jeandek added this to the 1.3.2 milestone Dec 13, 2022
@jeandek jeandek added the bug Something isn't working label Dec 13, 2022
@jeandek
Copy link
Contributor

jeandek commented Dec 13, 2022

Thanks for the PR. We will include this in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants