Fix a bug caused by NSPredicate mistake
This commit is contained in:
parent
e6f90bcc0d
commit
077e046a0e
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ class PasswordStore {
|
|||
func getPasswordEntity(by path: String, isDir: Bool) -> PasswordEntity? {
|
||||
let passwordEntityFetchRequest = NSFetchRequest<NSFetchRequestResult>(entityName: "PasswordEntity")
|
||||
do {
|
||||
passwordEntityFetchRequest.predicate = NSPredicate(format: "path = %@ and isDir = %@", path, isDir.description)
|
||||
passwordEntityFetchRequest.predicate = NSPredicate(format: "path = %@ and isDir = %@", path, isDir as NSNumber)
|
||||
return try context.fetch(passwordEntityFetchRequest).first as? PasswordEntity
|
||||
} catch {
|
||||
fatalError("Failed to fetch password entities: \(error)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue