fix a bug caused by UserDefaults extension

This commit is contained in:
Bob Sun 2017-02-09 17:15:07 +08:00
parent 1e07cf2e46
commit f06c2a2727
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 3 additions and 4 deletions

View file

@ -29,9 +29,8 @@ extension DefaultsKeys {
static let passcodeKey = DefaultsKey<String?>("passcodeKey")
}
extension UserDefaults {
func eraseAll() {
extension Utils {
static func eraseAllUserDefaults() {
Defaults.remove(.pgpKeyURL)
Defaults.remove(.pgpKeyPassphrase)

View file

@ -190,6 +190,6 @@ class PasswordStore {
deleteCoreData(entityName: "PasswordEntity")
deleteCoreData(entityName: "PasswordCategoryEntity")
Defaults.eraseAll()
Utils.eraseAllUserDefaults()
}
}