Skip to content

Commit 91f1d8b

Browse files
committed
Keep shipment index non-optional
1 parent 8099620 commit 91f1d8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/Sources/Storage/Model/WooShippingShipment+CoreDataProperties.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extension WooShippingShipment {
88

99
@NSManaged public var siteID: Int64
1010
@NSManaged public var orderID: Int64
11-
@NSManaged public var index: String?
11+
@NSManaged public var index: String
1212
@NSManaged public var shippingLabel: ShippingLabel?
1313
@NSManaged public var items: Set<WooShippingShipmentItem>?
1414
@NSManaged public var order: Order?

Modules/Sources/Yosemite/Model/Storage/WooShippingShipment+ReadOnlyConvertible.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extension Storage.WooShippingShipment: ReadOnlyConvertible {
2020

2121
return WooShippingShipment(siteID: siteID,
2222
orderID: orderID,
23-
index: index ?? "0",
23+
index: index,
2424
items: shipmentItems,
2525
shippingLabel: shipmentShippingLabel)
2626
}

0 commit comments

Comments
 (0)