Minor refactoring

pull/220/head
nielsandriesse 5 years ago
parent d465b12790
commit 89e18e220d

@ -203,7 +203,7 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, UIScrol
self.threads.update(with: transaction) self.threads.update(with: transaction)
} }
tableView.reloadData() tableView.reloadData()
emptyStateView.isHidden = threadCount != 0 emptyStateView.isHidden = (threadCount != 0)
} }
@objc private func handleYapDatabaseModifiedExternallyNotification(_ notification: Notification) { @objc private func handleYapDatabaseModifiedExternallyNotification(_ notification: Notification) {
@ -243,7 +243,7 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, UIScrol
} }
} }
tableView.endUpdates() tableView.endUpdates()
emptyStateView.isHidden = threadCount != 0 emptyStateView.isHidden = (threadCount != 0)
} }
@objc private func handleApplicationDidBecomeActiveNotification(_ notification: Notification) { @objc private func handleApplicationDidBecomeActiveNotification(_ notification: Notification) {

Loading…
Cancel
Save