diff options
| author | Nikolay Davydov <nik.davidov@gmail.com> | 2022-08-15 17:28:18 +0400 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-08-16 10:54:15 +0200 |
| commit | 8a75982168494d42a55af8597724f6348f9996ff (patch) | |
| tree | 6f184270c25de16f9d582fff93e5d139a48f3f73 | |
| parent | bb25b6b86f4fa9a921fe2323b3dc9715166506e9 (diff) | |
| download | mullvadvpn-8a75982168494d42a55af8597724f6348f9996ff.tar.xz mullvadvpn-8a75982168494d42a55af8597724f6348f9996ff.zip | |
Remove optional from cell provider
| -rw-r--r-- | ios/MullvadVPN/LocationDataSource.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadVPN/LocationDataSource.swift b/ios/MullvadVPN/LocationDataSource.swift index 4553f92efa..9adde6d3cd 100644 --- a/ios/MullvadVPN/LocationDataSource.swift +++ b/ios/MullvadVPN/LocationDataSource.swift @@ -20,7 +20,7 @@ protocol LocationDataSourceItemProtocol { class LocationDataSource: NSObject, UITableViewDataSource { typealias CellProviderBlock = (UITableView, IndexPath, LocationDataSourceItemProtocol) - -> UITableViewCell? + -> UITableViewCell typealias CellConfiguratorBlock = (UITableViewCell, IndexPath, LocationDataSourceItemProtocol) -> Void @@ -431,7 +431,7 @@ class LocationDataSource: NSObject, UITableViewDataSource { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { assert(indexPath.section == 0) let item = item(for: indexPath)! - let cell = cellProvider(tableView, indexPath, item)! + let cell = cellProvider(tableView, indexPath, item) cellConfigurator(cell, indexPath, item) |
