소스 검색

remove now superfluous nil-coalescing operator

B. Petersen 4 년 전
부모
커밋
a2ce9d0888
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      deltachat-ios/Controller/ContactDetailViewController.swift

+ 2 - 2
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -33,8 +33,8 @@ class ContactDetailViewController: UITableViewController {
 
 
     private lazy var blockContactCell: ActionCell = {
     private lazy var blockContactCell: ActionCell = {
         let cell = ActionCell()
         let cell = ActionCell()
-        cell.actionTitle = (viewModel.contact.isBlocked ?? false) ? String.localized("menu_unblock_contact") : String.localized("menu_block_contact")
-        cell.actionColor = (viewModel.contact.isBlocked ?? false) ? SystemColor.blue.uiColor : UIColor.red
+        cell.actionTitle = viewModel.contact.isBlocked ? String.localized("menu_unblock_contact") : String.localized("menu_block_contact")
+        cell.actionColor = viewModel.contact.isBlocked ? SystemColor.blue.uiColor : UIColor.red
         return cell
         return cell
     }()
     }()