Skip to content

Commit 8377ed0

Browse files
committed
Fix lint
1 parent cfa925c commit 8377ed0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Modules/Sources/Yosemite/PointOfSale/Items/PointOfSaleLocalBarcodeScanService.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Foundation
22
import protocol Storage.GRDBManagerProtocol
3-
import Storage
43
import class WooFoundation.CurrencySettings
54

65
/// Service for handling barcode scanning using local GRDB catalog
@@ -99,7 +98,9 @@ public final class PointOfSaleLocalBarcodeScanService: PointOfSaleBarcodeScanSer
9998
}
10099
}
101100

102-
private func convertVariationToItem(_ persistedVariation: PersistedProductVariation, parentProduct: PersistedProduct, scannedCode: String) async throws(PointOfSaleBarcodeScanError) -> POSItem {
101+
private func convertVariationToItem(_ persistedVariation: PersistedProductVariation,
102+
parentProduct: PersistedProduct,
103+
scannedCode: String) async throws(PointOfSaleBarcodeScanError) -> POSItem {
103104
do {
104105
// Validate variation is not downloadable (should already be filtered by query, but double-check)
105106
guard !persistedVariation.downloadable else {

WooCommerce/Classes/POS/TabBar/POSTabCoordinator.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ final class POSTabCoordinator {
7272
}()
7373

7474
/// Creates the appropriate barcode scan service based on local catalog availability
75-
private func createBarcodeScanService(grdbManager: GRDBManagerProtocol?, catalogSyncCoordinator: POSCatalogSyncCoordinatorProtocol?) -> any PointOfSaleBarcodeScanServiceProtocol {
75+
private func createBarcodeScanService(grdbManager: GRDBManagerProtocol?,
76+
catalogSyncCoordinator: POSCatalogSyncCoordinatorProtocol?) -> any PointOfSaleBarcodeScanServiceProtocol {
7677
// Use local barcode scanning if both GRDB manager and catalog sync coordinator are available
7778
// This indicates the local catalog feature is properly initialized and can be used
7879
if let grdbManager, catalogSyncCoordinator != nil {

0 commit comments

Comments
 (0)