Minor refactoring

This commit is contained in:
nielsandriesse 2020-06-22 10:59:18 +10:00
parent d465b12790
commit 89e18e220d
1 changed files with 2 additions and 2 deletions

View File

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