Remove duplicated check for HTTPS

This commit is contained in:
Danny Moesch 2019-06-25 22:43:37 +02:00 committed by Mingshen Sun
parent 68f2c28f48
commit d43a3be6f6

View file

@ -28,7 +28,7 @@ class PGPKeySettingTableViewController: AutoCellHeightUITableViewController {
Utils.alert(title: "CannotSavePgpKey".localize(), message: "SetPgpKeyUrlFirst.".localize(), controller: self, completion: nil)
return false
}
guard let scheme = url.scheme, scheme == "https", scheme == "https" else {
guard let scheme = url.scheme, scheme == "https" else {
Utils.alert(title: "CannotSavePgpKey".localize(), message: "HttpNotSupported.".localize(), controller: self, completion: nil)
return false
}