mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-06-23 03:54:49 +02:00
break for-loop of addUserId method when finding key
This commit is contained in:
parent
86c3487ad4
commit
31844c5212
|
@ -91,7 +91,7 @@ public class KeyRingEditor implements KeyRingEditorInterface {
|
|||
Iterator<PGPSecretKey> secretKeyIterator = secretKeyRing.getSecretKeys();
|
||||
|
||||
boolean found = false;
|
||||
while (secretKeyIterator.hasNext()) {
|
||||
while (!found && secretKeyIterator.hasNext()) {
|
||||
PGPSecretKey secretKey = secretKeyIterator.next();
|
||||
if (secretKey.getKeyID() == keyId) {
|
||||
found = true;
|
||||
|
|
Loading…
Reference in a new issue