Skip to content

Commit b316ec3

Browse files
committed
Fixed few linting issues
1 parent 56adc87 commit b316ec3

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Sources/Purchasing/Purchases/Purchases.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public typealias StartPurchaseBlock = (@escaping PurchaseCompletedBlock) -> Void
412412
let offeringsFactory = OfferingsFactory()
413413
let receiptParser = PurchasesReceiptParser.default
414414
let transactionsManager = TransactionsManager(receiptParser: receiptParser)
415-
415+
416416
let productsManager = CachingProductsManager(
417417
manager: ProductsManagerFactory.createManager(apiKeyValidationResult: apiKeyValidationResult,
418418
diagnosticsTracker: diagnosticsTracker,

Tests/StoreKitUnitTests/ProductsManagerFactoryTests.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import XCTest
1414

1515
@available(iOS 14.0, tvOS 14.0, macOS 11.0, watchOS 7.0, *)
1616
class ProductsManagerFactoryTests: StoreKitConfigTestCase {
17-
17+
1818
var mockSystemInfo: MockSystemInfo!
1919
var mockDeviceCache: MockDeviceCache!
2020
var mockBackend: MockBackend!
@@ -27,10 +27,10 @@ class ProductsManagerFactoryTests: StoreKitConfigTestCase {
2727
@available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
2828
func testSomething() async throws {
2929
try AvailabilityChecks.iOS16APIAvailableOrSkipTest()
30-
30+
3131
testSession.locale = Locale(identifier: "ro_RO")
3232
let manager = try createSut(storeKitVersion: .storeKit2, storefront: MockStorefront(countryCode: "ro_RO"))
33-
33+
3434
let offeringsResponse = OfferingsResponse(
3535
currentOfferingId: "default",
3636
offerings: [.init(
@@ -65,16 +65,16 @@ class ProductsManagerFactoryTests: StoreKitConfigTestCase {
6565
]
6666
)
6767
)
68-
68+
6969
mockOfferingsAPI.stubbedGetOfferingsCompletionResult = .success(offeringsResponse)
70-
70+
7171
// when
7272
let result = waitUntilValue { completed in
7373
self.offeringsManager.offerings(appUserID: "") {
7474
completed($0)
7575
}
7676
}
77-
77+
7878
mockDeviceCache.stubbedOfferings = result?.value
7979

8080
let identifier = "com.revenuecat.monthly_4.99.1_week_intro"
@@ -100,14 +100,14 @@ class ProductsManagerFactoryTests: StoreKitConfigTestCase {
100100
preferredLocalesProvider: preferredLocalesProvider
101101
)
102102
mockSystemInfo.stubbedStorefront = storefront
103-
103+
104104
mockDeviceCache = MockDeviceCache(
105105
systemInfo: mockSystemInfo
106106
)
107107
mockBackend = MockBackend()
108-
108+
109109
mockOfferingsAPI = try XCTUnwrap(mockBackend.offerings as? MockOfferingsAPI)
110-
110+
111111
let productsManager = ProductsManagerFactory.createManager(
112112
apiKeyValidationResult: .validApplePlatform,
113113
diagnosticsTracker: nil,
@@ -116,7 +116,7 @@ class ProductsManagerFactoryTests: StoreKitConfigTestCase {
116116
deviceCache: mockDeviceCache,
117117
requestTimeout: 60
118118
)
119-
119+
120120
self.offeringsManager = OfferingsManager(
121121
deviceCache: mockDeviceCache,
122122
operationDispatcher: mockOperationDispatcher,
@@ -126,10 +126,10 @@ class ProductsManagerFactoryTests: StoreKitConfigTestCase {
126126
productsManager: productsManager,
127127
diagnosticsTracker: nil
128128
)
129-
129+
130130
return productsManager
131131
}
132-
132+
133133
override func changeStorefront(_ new: String, file: FileString = #fileID, line: UInt = #line) async throws {
134134
mockSystemInfo.stubbedStorefront = MockStorefront(countryCode: new)
135135
try await super.changeStorefront(new, file: file, line: line)

0 commit comments

Comments
 (0)