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

Alter url to be a variable and optional under configuration path #21

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

okhan-okbay-cko
Copy link
Contributor

We needed this to avoid having SDK crash with fatalError in the case where a URL could not be created. Now, the clients of CheckoutNetwork will get an error thrown in this case so that they can gracefully handle it. Also, it's harder to test fatalError than to test thrown Error conformers in Swift.

@okhan-okbay-cko okhan-okbay-cko self-assigned this Aug 9, 2024
@okhan-okbay-cko okhan-okbay-cko requested a review from a team as a code owner August 9, 2024 14:39
@okhan-okbay-cko okhan-okbay-cko merged commit 7d1b531 into main Aug 9, 2024
3 checks passed
@okhan-okbay-cko okhan-okbay-cko deleted the feature/make-url-optional branch August 9, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants