浏览代码

Rename local variable in filterReceiptsInfo

Andrea Bizzotto 8 年之前
父节点
当前提交
4476230f58
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      SwiftyStoreKit/InAppReceipt.swift

+ 2 - 2
SwiftyStoreKit/InAppReceipt.swift

@@ -162,12 +162,12 @@ internal class InAppReceipt {
      */
     private class func filterReceiptsInfo(receipts: [ReceiptInfo]?, withProductId productId: String) -> [ReceiptInfo] {
 
-        guard let allReceipts = receipts else {
+        guard let receipts = receipts else {
             return []
         }
       
         // Filter receipts with matching product id
-        let receiptsMatchingProductId = allReceipts
+        let receiptsMatchingProductId = receipts
             .filter { (receipt) -> Bool in
                 let product_id = receipt["product_id"] as? String
                 return product_id == productId