Browse Source

Added missing @discardableResult

Roman Podymov 5 năm trước cách đây
mục cha
commit
0d51327d01
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      SwiftyStoreKit/ProductsInfoController.swift

+ 1 - 0
SwiftyStoreKit/ProductsInfoController.swift

@@ -51,6 +51,7 @@ class ProductsInfoController: NSObject {
     // As we can have multiple inflight requests, we store them in a dictionary by product ids
     private var inflightRequests: [Set<String>: InAppProductQuery] = [:]
 
+    @discardableResult
     func retrieveProductsInfo(_ productIds: Set<String>, completion: @escaping (RetrieveResults) -> Void) -> InAppProductRequest {
 
         if inflightRequests[productIds] == nil {