Skip to content

Commit

Permalink
emptiness check peform with isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
Olmrzklv committed Feb 21, 2020
1 parent 230dc6e commit 4f45097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftyStoreKit/InAppReceipt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4f45097

Please sign in to comment.