1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-22 19:08:00 +01:00

Do not catch and immediatelly rethrow exception

This commit is contained in:
Paul Schaub 2023-05-03 17:16:56 +02:00
parent 5c76f9046f
commit 78cb2ec3d0
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -7,7 +7,6 @@ package org.pgpainless.decryption_verification;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.NoSuchElementException;
import org.bouncycastle.bcpg.BCPGInputStream;
import org.bouncycastle.bcpg.MarkerPacket;
@ -49,13 +48,7 @@ public class TeeBCPGInputStream {
return null;
}
OpenPgpPacket packet;
try {
packet = OpenPgpPacket.requireFromTag(tag);
} catch (NoSuchElementException e) {
throw e;
}
return packet;
return OpenPgpPacket.requireFromTag(tag);
}
public Packet readPacket() throws IOException {