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

Add missing else condition in SwiftyStoreKit.purchaseProduct #426

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

achimb
Copy link
Contributor

@achimb achimb commented Nov 19, 2018

The function purchaseProduct() can leave without calling the completion handler if none of the if-lets will work out. The added lines will call the completion handler with an unknown error.

The function purchaseProduct() can leave without calling the completion handler if none of the if-lets will work out. The added lines will call the completion handler with an unknown error.
@bizz84
Copy link
Owner

bizz84 commented Nov 19, 2018

@achimb Thank you very much for contributing! This may be very useful to catch some edge cases.

@bizz84 bizz84 merged commit 5b1036b into bizz84:develop Nov 19, 2018
@bizz84 bizz84 changed the title Update SwiftyStoreKit.swift Add missing else condition in SwiftyStoreKit.purchaseProduct Nov 19, 2018
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