mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 16:09:38 +02:00
fix(pgpainless): remove incorrect check
I don't believe this ever made sense to check in the decryption phase
This commit is contained in:
parent
336e36ef04
commit
6fe80fb4b3
|
@ -66,11 +66,6 @@ public class PGPainlessCryptoHandler @Inject constructor() :
|
|||
)
|
||||
Streams.pipeAll(decryptionStream, outputStream)
|
||||
decryptionStream.close()
|
||||
keyringCollection.forEach { keyRing ->
|
||||
check(decryptionStream.metadata.isEncryptedFor(keyRing)) {
|
||||
"Stream should be encrypted for ${keyRing.secretKey.keyID} but wasn't"
|
||||
}
|
||||
}
|
||||
return@runCatching
|
||||
}
|
||||
.mapError { error ->
|
||||
|
|
Loading…
Reference in a new issue