From 89e18e220de138f93ecf635c8bb92d88ea3fe01c Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Mon, 22 Jun 2020 10:59:18 +1000 Subject: [PATCH] Minor refactoring --- Signal/src/Loki/View Controllers/HomeVC.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/Loki/View Controllers/HomeVC.swift b/Signal/src/Loki/View Controllers/HomeVC.swift index ad350b263..19af65f6a 100644 --- a/Signal/src/Loki/View Controllers/HomeVC.swift +++ b/Signal/src/Loki/View Controllers/HomeVC.swift @@ -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) {