Browse Source

Fixed typo for compactMap

Matt Barker 7 năm trước cách đây
mục cha
commit
e8d5da650c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      SwiftyStoreKit/InAppReceipt.swift

+ 1 - 1
SwiftyStoreKit/InAppReceipt.swift

@@ -180,7 +180,7 @@ internal class InAppReceipt {
                     return nil
                 }
             #else
-                return receiptItems.compactMap {
+                return receiptItems.flatMap {
                     if let expirationDate = $0.subscriptionExpirationDate {
                         return (expirationDate, $0)
                     }