Skip to content

Commit

Permalink
PurchasedProductsFetcher: refactored fetchTransactions (#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto authored Sep 19, 2023
1 parent 91912b3 commit 269c4f8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Sources/OfflineEntitlements/PurchasedProductsFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,9 @@ final class PurchasedProductsFetcher: PurchasedProductsFetcherType {
throw Error.foundConsumablePurchase
}

var result: Transactions = []

Logger.debug(Strings.offlineEntitlements.purchased_products_fetching)
for await transaction in StoreKit.Transaction.currentEntitlements {
result.append(transaction)
}

return result
return await StoreKit.Transaction.currentEntitlements.extractValues()
}

}
Expand Down

0 comments on commit 269c4f8

Please sign in to comment.