Remove redundant 'else' blocks

This commit is contained in:
Danny Moesch 2021-01-31 13:34:37 +01:00 committed by Mingshen Sun
parent ad4ed9419e
commit 1454693308
9 changed files with 22 additions and 57 deletions

View file

@ -228,9 +228,8 @@ class PasswordEditorTableViewController: UITableViewController {
if section == passwordSection, hidePasswordSettings {
// hide the password section, only the password should be shown
return 1
} else {
return tableData[section].count
}
return tableData[section].count
}
override func tableView(_: UITableView, titleForHeaderInSection section: Int) -> String? {