Enable SwiftLint rule 'empty_string' and fix all violations
This commit is contained in:
parent
bb9e85ddc8
commit
2dcc72722b
4 changed files with 5 additions and 5 deletions
|
|
@ -580,7 +580,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
|||
|
||||
func filterContentForSearchText(searchText: String, scope: SearchBarScope = .all) {
|
||||
var entries: [PasswordTableEntry] = scope == .all ? passwordsTableAllEntries : passwordsTableEntries
|
||||
if searchController.isActive, searchController.searchBar.text != "" {
|
||||
if searchController.isActive, let searchBarText = searchController.searchBar.text, !searchBarText.isEmpty {
|
||||
entries = entries.filter { $0.match(searchText) }
|
||||
}
|
||||
reloadTableView(data: entries)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue