Skip to content

Commit b3991c7

Browse files
committed
Add clarifying code comment
1 parent 908eb5b commit b3991c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Modules/Sources/Yosemite/Model/Booking/Booking+ReadOnlyConvertible.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ extension Storage.Booking: ReadOnlyConvertible {
1313
allDay = booking.allDay
1414
cost = booking.cost
1515
customerID = booking.customerID
16+
17+
/// Falling to back to existing values in case if new values are absent
18+
/// Booking returned when sending a `PUT` request to `bookings/{booking_id}`
19+
/// doesn't contain `date_created` and `date_modified` values.
1620
dateCreated = booking.dateCreated ?? dateCreated
1721
dateModified = booking.dateModified ?? dateModified
22+
1823
endDate = booking.endDate
1924
googleCalendarEventID = booking.googleCalendarEventID
2025
orderID = booking.orderID

0 commit comments

Comments
 (0)