Some cosmetic changes

This commit is contained in:
Danny Moesch 2020-02-09 14:06:08 +01:00 committed by Mingshen Sun
parent e447b1d9d3
commit 5f6723246b
7 changed files with 10 additions and 20 deletions

View file

@ -9,7 +9,7 @@
import Foundation
import UIKit
public class Globals {
public final class Globals {
public static let bundleIdentifier = "me.mssun.passforios"
public static let groupIdentifier = "group." + bundleIdentifier
public static let passKitBundleIdentifier = bundleIdentifier + ".passKit"

View file

@ -124,10 +124,6 @@ public class PasswordStore {
Defaults.remove(\.gitSSHPrivateKeyArmor)
}
public func initGitSSHKey(with armorKey: String) throws {
AppKeychain.shared.add(string: armorKey, for: SshKey.PRIVATE.getKeychainKey())
}
public func repositoryExisted() -> Bool {
let fm = FileManager()
return fm.fileExists(atPath: Globals.repositoryPath)