mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-25 00:22:06 +01:00
decrypt --verify-with: Do not throw NoSignature if verifications is empty
This commit is contained in:
parent
ba13cac18c
commit
3d77b8346a
1 changed files with 0 additions and 5 deletions
|
@ -115,11 +115,6 @@ public class DecryptCmd extends AbstractSopCmd {
|
|||
|
||||
private void writeVerifyOut(DecryptionResult result) throws IOException {
|
||||
if (verifyOut != null) {
|
||||
if (result.getVerifications().isEmpty()) {
|
||||
String errorMsg = getMsg("sop.error.runtime.no_verifiable_signature_found");
|
||||
throw new SOPGPException.NoSignature(errorMsg);
|
||||
}
|
||||
|
||||
try (OutputStream fileOut = getOutput(verifyOut)) {
|
||||
PrintWriter writer = new PrintWriter(fileOut);
|
||||
for (Verification verification : result.getVerifications()) {
|
||||
|
|
Loading…
Reference in a new issue