Cleanup duplicated code (#678)
This commit is contained in:
parent
b0a971507f
commit
1e79e12593
2 changed files with 2 additions and 10 deletions
|
|
@ -53,7 +53,7 @@ final class PasswordStoreTest: XCTestCase {
|
|||
}
|
||||
|
||||
private func decrypt(passwordStore: PasswordStore, path: String, passphrase _: String) throws -> Password {
|
||||
let entity = passwordStore.getPasswordEntity(by: path, isDir: false)!
|
||||
let entity = passwordStore.fetchPasswordEntity(with: path)!
|
||||
return try passwordStore.decrypt(passwordEntity: entity, requestPGPKeyPassphrase: requestPGPKeyPassphrase)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue