mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 18:59:39 +02:00
break for-loop of addUserId method when finding key
This commit is contained in:
parent
86c3487ad4
commit
31844c5212
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ public class KeyRingEditor implements KeyRingEditorInterface {
|
||||||
Iterator<PGPSecretKey> secretKeyIterator = secretKeyRing.getSecretKeys();
|
Iterator<PGPSecretKey> secretKeyIterator = secretKeyRing.getSecretKeys();
|
||||||
|
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
while (secretKeyIterator.hasNext()) {
|
while (!found && secretKeyIterator.hasNext()) {
|
||||||
PGPSecretKey secretKey = secretKeyIterator.next();
|
PGPSecretKey secretKey = secretKeyIterator.next();
|
||||||
if (secretKey.getKeyID() == keyId) {
|
if (secretKey.getKeyID() == keyId) {
|
||||||
found = true;
|
found = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue