fix(pgpainless): remove incorrect check

I don't believe this ever made sense to check in the decryption phase
This commit is contained in:
Harsh Shandilya 2024-05-25 20:48:20 +05:30
parent 336e36ef04
commit 6fe80fb4b3

View file

@ -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 ->