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
1 changed files with 0 additions and 5 deletions
|
@ -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