Run updated SwiftFormat
This commit is contained in:
parent
a49f0ee5e0
commit
1a8692bde3
6 changed files with 11 additions and 11 deletions
|
|
@ -192,7 +192,7 @@ open class PasscodeLockViewController: UIViewController, UITextFieldDelegate {
|
|||
UIAlertAction(title: "ErasePasswordStoreData".localize(), style: UIAlertAction.Style.destructive) { [unowned self] _ -> Void in
|
||||
let myContext = LAContext()
|
||||
// If the device passcode is not set, reset the app.
|
||||
guard myContext.canEvaluatePolicy(.deviceOwnerAuthentication, error: nil)else {
|
||||
guard myContext.canEvaluatePolicy(.deviceOwnerAuthentication, error: nil) else {
|
||||
self.passwordStore.erase()
|
||||
self.passcodeLockDidSucceed()
|
||||
return
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ extension AppError: LocalizedError {
|
|||
let enumName = String(describing: self)
|
||||
let localizationKey = "\(enumName.first!.uppercased())\(enumName.dropFirst().prefix { $0 != "(" })Error."
|
||||
switch self {
|
||||
case let .repositoryRemoteBranchNotFound(name), let .repositoryBranchNotFound(name), let .readingFile(name):
|
||||
case let .readingFile(name), let .repositoryBranchNotFound(name), let .repositoryRemoteBranchNotFound(name):
|
||||
return localizationKey.localize(name)
|
||||
case let .pgpPublicKeyNotFound(keyID), let .pgpPrivateKeyNotFound(keyID):
|
||||
case let .pgpPrivateKeyNotFound(keyID), let .pgpPublicKeyNotFound(keyID):
|
||||
return localizationKey.localize(keyID)
|
||||
default:
|
||||
return localizationKey.localize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue