passKit: fix warnings

This commit is contained in:
Mingshen Sun 2019-06-08 18:03:04 -07:00
parent bb9d2bec5d
commit c66439c2f9
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -214,8 +214,6 @@ public class PasswordStore {
if self.privateKey == nil { if self.privateKey == nil {
throw AppError.KeyImport throw AppError.KeyImport
} }
default:
throw AppError.Unknown
} }
} }
@ -269,7 +267,6 @@ public class PasswordStore {
} catch { } catch {
fatalError("FailedToFetchPasswordEntities".localize(error)) fatalError("FailedToFetchPasswordEntities".localize(error))
} }
return true
} }
public func passwordEntityExisted(path: String) -> Bool { public func passwordEntityExisted(path: String) -> Bool {
@ -285,7 +282,6 @@ public class PasswordStore {
} catch { } catch {
fatalError("FailedToFetchPasswordEntities".localize(error)) fatalError("FailedToFetchPasswordEntities".localize(error))
} }
return true
} }
public func getPasswordEntity(by path: String, isDir: Bool) -> PasswordEntity? { public func getPasswordEntity(by path: String, isDir: Bool) -> PasswordEntity? {