Skip to content

Add missing else condition in SwiftyStoreKit.purchaseProduct#426

Merged
bizz84 merged 1 commit intobizz84:developfrom
achimb:patch-1
Nov 19, 2018
Merged

Add missing else condition in SwiftyStoreKit.purchaseProduct#426
bizz84 merged 1 commit intobizz84:developfrom
achimb:patch-1

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