Skip to content

Commit

Permalink
Added compactMap to InAppReceipt.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbarker016 authored Apr 3, 2018
1 parent c154537 commit 207b378
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 @@ -163,7 +163,7 @@ internal class InAppReceipt {
return (expirationDate, $0)
}
} else {
return receiptItems.flatMap {
return receiptItems.compactMap {
if let expirationDate = $0.subscriptionExpirationDate {
return (expirationDate, $0)
}
Expand Down

0 comments on commit 207b378

Please sign in to comment.