Skip to content

Commit 8136676

Browse files
joshhealdstaskus
andauthored
Remove unnecessary await calls
Co-authored-by: Povilas Staskus <[email protected]>
1 parent c66708d commit 8136676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public final class PointOfSaleLocalBarcodeScanService: PointOfSaleBarcodeScanSer
2727
}
2828

2929
if let variationAndParent = try searchVariationByGlobalUniqueID(barcode) {
30-
return try await convertVariationToItem(variationAndParent.variation, parentProduct: variationAndParent.parentProduct, scannedCode: barcode)
30+
return try convertVariationToItem(variationAndParent.variation, parentProduct: variationAndParent.parentProduct, scannedCode: barcode)
3131
}
3232

3333
throw PointOfSaleBarcodeScanError.notFound(scannedCode: barcode)
@@ -97,7 +97,7 @@ public final class PointOfSaleLocalBarcodeScanService: PointOfSaleBarcodeScanSer
9797

9898
private func convertVariationToItem(_ persistedVariation: PersistedProductVariation,
9999
parentProduct: PersistedProduct,
100-
scannedCode: String) async throws(PointOfSaleBarcodeScanError) -> POSItem {
100+
scannedCode: String) throws(PointOfSaleBarcodeScanError) -> POSItem {
101101
do {
102102
// Convert both variation and parent to POS models
103103
let posVariation = try persistedVariation.toPOSProductVariation(db: grdbManager.databaseConnection)

0 commit comments

Comments
 (0)