Remove redundant 'else' blocks
This commit is contained in:
parent
ad4ed9419e
commit
1454693308
9 changed files with 22 additions and 57 deletions
|
|
@ -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