Skip to content

Commit 177b484

Browse files
committed
Revert unnecessary formatting changes
1 parent d26c2be commit 177b484

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Modules/Sources/Networking/Model/Product/Product.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,11 @@ public struct Product: Codable, GeneratedCopiable, Equatable, GeneratedFakeable
404404
let price = container.failsafeDecodeIfPresent(targetType: String.self,
405405
forKey: .price,
406406
alternativeTypes: [.decimal(transform: { NSDecimalNumber(decimal: $0).stringValue })])
407-
?? ""
407+
?? ""
408408
let regularPrice = container.failsafeDecodeIfPresent(targetType: String.self,
409409
forKey: .regularPrice,
410410
alternativeTypes: [.decimal(transform: { NSDecimalNumber(decimal: $0).stringValue })])
411-
?? ""
411+
?? ""
412412

413413
// Even though WooCommerce Core returns Bool values,
414414
// some plugins alter the field value from Bool to String.
@@ -424,7 +424,7 @@ public struct Product: Codable, GeneratedCopiable, Equatable, GeneratedFakeable
424424
alternativeTypes: [
425425
.string(transform: { (onSale && $0.isEmpty) ? "0" : $0 }),
426426
.decimal(transform: { NSDecimalNumber(decimal: $0).stringValue })])
427-
?? ""
427+
?? ""
428428

429429
// Even though WooCommerce Core returns Bool values,
430430
// some plugins alter the field value from Bool to Int (1 or 0)

Modules/Sources/Networking/Model/Product/ProductVariation.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ public struct ProductVariation: Codable, GeneratedCopiable, Equatable, Generated
224224
let price = container.failsafeDecodeIfPresent(targetType: String.self,
225225
forKey: .price,
226226
alternativeTypes: [.decimal(transform: { NSDecimalNumber(decimal: $0).stringValue })])
227-
?? ""
227+
?? ""
228228

229229
let regularPrice = container.failsafeDecodeIfPresent(targetType: String.self,
230230
forKey: .regularPrice,
231231
alternativeTypes: [.decimal(transform: { NSDecimalNumber(decimal: $0).stringValue })])
232-
?? ""
232+
?? ""
233233

234234
// Even though WooCommerce Core returns Bool values,
235235
// some plugins alter the field value from Bool to String.
@@ -245,7 +245,7 @@ public struct ProductVariation: Codable, GeneratedCopiable, Equatable, Generated
245245
alternativeTypes: [
246246
.string(transform: { (onSale && $0.isEmpty) ? "0" : $0 }),
247247
.decimal(transform: { NSDecimalNumber(decimal: $0).stringValue })])
248-
?? ""
248+
?? ""
249249

250250
// Even though WooCommerce Core returns Bool values,
251251
// some plugins alter the field value from Bool to Int (1 or 0)

0 commit comments

Comments
 (0)