Permalink
Browse files

Streamline the code for checking receipt security.

  • Loading branch information...
1 parent 19d5ab8 commit 75c26d37d792b19178dbc52c6f2c9766f9a328af @lxcid committed Dec 8, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 CargoBay/CargoBay.m
View
@@ -756,9 +756,7 @@ - (BOOL)isTransactionAndItsReceiptValid:(SKPaymentTransaction *)theTransaction e
// Check the authenticity of the receipt response/signature etc.
- BOOL theResult = CBCheckReceiptSecurity(theTransactionPurchaseInfo, theSignature, (__bridge CFDateRef)thePurchaseDate);
-
- if (!theResult) {
+ if (!CBCheckReceiptSecurity(theTransactionPurchaseInfo, theSignature, (__bridge CFDateRef)thePurchaseDate)) {
return NO;
}

0 comments on commit 75c26d3

Please sign in to comment.