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:
parent
5c76f9046f
commit
78cb2ec3d0
1 changed files with 1 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue