Remove redundant 'else' blocks
This commit is contained in:
parent
ad4ed9419e
commit
1454693308
9 changed files with 22 additions and 57 deletions
|
|
@ -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? {
|
||||
|
|
|
|||
|
|
@ -102,9 +102,8 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
|
|||
let gitURL = Defaults.gitURL
|
||||
if gitURL.scheme == nil {
|
||||
return URL(string: "scheme://" + gitURL.absoluteString)?.host
|
||||
} else {
|
||||
return gitURL.host
|
||||
}
|
||||
return gitURL.host
|
||||
}()
|
||||
passwordRepositoryTableViewCell.detailTextLabel?.text = host
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue