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

@ -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
}