File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Yosemite/Yosemite/Stores/Order Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -260,10 +260,10 @@ struct OrdersUpsertUseCase {
260260 }
261261 }
262262
263- /// Updates, inserts, or prunes the provided StorageOrder 's taxes using the provided read-only Order 's taxes
263+ /// Updates, inserts, or prunes the provided `storageOrder` 's taxes using the provided `readOnlyOrder` 's taxes
264264 ///
265265 private func handleOrderTaxes( _ readOnlyOrder: Networking . Order , _ storageOrder: Storage . Order , _ storage: StorageType ) {
266- // Upsert the taxes from the read-only order
266+ // Upsert the ` taxes` from the `readOnlyOrder`
267267 readOnlyOrder. taxes. forEach { readOnlyTax in
268268 if let existingStorageTax = storage. loadOrderTaxLine ( siteID: readOnlyOrder. siteID, taxID: readOnlyTax. taxID) {
269269 existingStorageTax. update ( with: readOnlyTax)
@@ -274,7 +274,7 @@ struct OrdersUpsertUseCase {
274274 }
275275 }
276276
277- // Now, remove any objects that exist in storageOrder.taxes but not in readOnlyOrder.taxes
277+ // Now, remove any objects that exist in ` storageOrder.taxes` but not in ` readOnlyOrder.taxes`
278278 storageOrder. taxes? . forEach { storageFee in
279279 if readOnlyOrder. taxes. first ( where: { $0. taxID == storageFee. taxID } ) == nil {
280280 storageOrder. removeFromTaxes ( storageFee)
You can’t perform that action at this time.
0 commit comments