Skip to content

Commit a467350

Browse files
committed
Lint fixes
1 parent d54dd2e commit a467350

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Modules/Sources/Yosemite/Tools/POS/POSCatalogSyncCoordinator.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public actor POSCatalogSyncCoordinator: POSCatalogSyncCoordinatorProtocol {
3535
self.grdbManager = grdbManager
3636
}
3737

38+
//periphery:ignore - used for tests to inject persistence service
3839
init(fullSyncService: POSCatalogFullSyncServiceProtocol,
3940
persistenceService: POSCatalogPersistenceServiceProtocol,
4041
grdbManager: GRDBManagerProtocol) {
@@ -68,7 +69,7 @@ public actor POSCatalogSyncCoordinator: POSCatalogSyncCoordinatorProtocol {
6869
lastIncrementalSyncDate: currentSite?.lastIncrementalSyncDate,
6970
lastFullSyncDate: Date()
7071
)
71-
72+
7273
do {
7374
try await persistenceService.updateSite(updatedSite)
7475
} catch POSCatalogPersistenceError.siteNotFound {

Modules/Tests/YosemiteTests/Mocks/MockPOSCatalogPersistenceService.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ final class MockPOSCatalogPersistenceService: POSCatalogPersistenceServiceProtoc
1010
// MARK: - loadSite tracking
1111
var loadSiteResult: Result<POSSite?, Error> = .success(nil)
1212
private(set) var loadSiteCallCount = 0
13-
13+
1414
// Track specific sites for multi-site tests
1515
var siteResults: [Int64: POSSite] = [:]
16-
16+
1717
// MARK: - updateSite tracking
1818
private(set) var updateSiteCallCount = 0
1919
private(set) var lastUpdatedSite: POSSite?
20-
20+
2121
// Internal storage for updated sites
2222
private var storedSites: [Int64: POSSite] = [:]
2323

2424
// MARK: - Protocol Implementation
25-
25+
2626
func replaceAllCatalogData(_ catalog: POSCatalog, siteID: Int64) async throws {
2727
// Not used in current tests
2828
}

Modules/Tests/YosemiteTests/Tools/POS/POSCatalogFullSyncServiceTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,3 @@ struct POSCatalogFullSyncServiceTests {
169169
#expect(mockSyncRemote.loadProductVariationsCallCount == 5)
170170
}
171171
}
172-

0 commit comments

Comments
 (0)