mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
swiftformat now enforces newlines for ifs
This commit is contained in:
@@ -145,8 +145,12 @@ class LocationSharingScreenViewModel: LocationSharingScreenViewModelType, Locati
|
||||
state.liveLocationShares = liveLocationsShares
|
||||
.filter { !(isStoppingLiveLocation && ownUserID == $0.userID) }
|
||||
.sorted { lhs, rhs in
|
||||
if lhs.userID == ownUserID { return true }
|
||||
if rhs.userID == ownUserID { return false }
|
||||
if lhs.userID == ownUserID {
|
||||
return true
|
||||
}
|
||||
if rhs.userID == ownUserID {
|
||||
return false
|
||||
}
|
||||
return lhs.timestamp > rhs.timestamp
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user