mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-18 02:12:06 +01:00
Simplify KeyReader
This commit is contained in:
parent
5c11b8af08
commit
7d049d0ac4
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ class KeyReader {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (requireContent && (keys == null || keys.size() == 0)) {
|
if (requireContent && keys.size() == 0) {
|
||||||
throw new SOPGPException.BadData(new PGPException("No key data found."));
|
throw new SOPGPException.BadData(new PGPException("No key data found."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class KeyReader {
|
||||||
}
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
if (requireContent && (certs == null || certs.size() == 0)) {
|
if (requireContent && certs.size() == 0) {
|
||||||
throw new SOPGPException.BadData(new PGPException("No cert data found."));
|
throw new SOPGPException.BadData(new PGPException("No cert data found."));
|
||||||
}
|
}
|
||||||
return certs;
|
return certs;
|
||||||
|
|
Loading…
Reference in a new issue