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 samples create always failing #657

Merged

Conversation

vcheung-stripe
Copy link
Collaborator

Reviewers

r? @pepin-stripe
cc @stripe/developer-products

Summary

In #652, I made a mistake in the switch statement. Because I didn't include all the cases, we would hit the default case every time. The default case returns an error so sample creation would fail every time.

This adds those unused cases to the switch statement and also renames them to be more accurate.

Copy link
Contributor

@pepin-stripe pepin-stripe left a comment

Choose a reason for hiding this comment

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

LGTM

@vcheung-stripe vcheung-stripe merged commit b543000 into stripe:master May 5, 2021
@vcheung-stripe vcheung-stripe deleted the vcheung/refactor-samples-2 branch May 5, 2021 23:02
az777777 pushed a commit to az777777/stripe-cli that referenced this pull request Jun 22, 2021
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.

None yet

2 participants