mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 14:22:05 +01: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();
|
||||
|
||||
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