Fix new warning caused by Swift 5.3 and bring SwiftLint rule in sync with it

This commit is contained in:
Danny Moesch 2020-09-19 15:20:50 +02:00 committed by Mingshen Sun
parent 2b7b378e12
commit f9d5d794f0
5 changed files with 7 additions and 4 deletions

View file

@ -88,9 +88,9 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
@objc
private func decryptThenShowPassword(keyID: String? = nil) {
guard let passwordEntity = passwordEntity else {
Utils.alert(title: "CannotShowPassword".localize(), message: "PasswordDoesNotExist".localize(), controller: self) {
Utils.alert(title: "CannotShowPassword".localize(), message: "PasswordDoesNotExist".localize(), controller: self, completion: {
self.navigationController!.popViewController(animated: true)
}
})
return
}
DispatchQueue.global(qos: .userInitiated).async {