Bläddra i källkod

emptiness check peform with `isEmpty`

Olmrzklv 5 år sedan
förälder
incheckning
4f45097d4a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      SwiftyStoreKit/InAppReceipt.swift

+ 1 - 1
SwiftyStoreKit/InAppReceipt.swift

@@ -194,7 +194,7 @@ internal class InAppReceipt {
             let receiptIds = receipts.flatMap { ReceiptItem(receiptInfo: $0)?.productId }
         #endif
         
-        if receiptIds.count == 0 {
+        if receiptIds.isEmpty {
             return nil
         }