소스 검색

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] {
     private class func filterReceiptsInfo(receipts: [ReceiptInfo]?, withProductId productId: String) -> [ReceiptInfo] {
 
 
-        guard let allReceipts = receipts else {
+        guard let receipts = receipts else {
             return []
             return []
         }
         }
       
       
         // Filter receipts with matching product id
         // Filter receipts with matching product id
-        let receiptsMatchingProductId = allReceipts
+        let receiptsMatchingProductId = receipts
             .filter { (receipt) -> Bool in
             .filter { (receipt) -> Bool in
                 let product_id = receipt["product_id"] as? String
                 let product_id = receipt["product_id"] as? String
                 return product_id == productId
                 return product_id == productId