From 9a8bb7d3ef996c43834eab8f58e45491af99a3df Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Fri, 10 Sep 2021 21:04:36 +0200 Subject: [PATCH] Add missing break statement to loop --- .../key/modification/secretkeyring/SecretKeyRingEditor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/modification/secretkeyring/SecretKeyRingEditor.java b/pgpainless-core/src/main/java/org/pgpainless/key/modification/secretkeyring/SecretKeyRingEditor.java index d480a55a..39863c1b 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/modification/secretkeyring/SecretKeyRingEditor.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/modification/secretkeyring/SecretKeyRingEditor.java @@ -625,6 +625,7 @@ public class SecretKeyRingEditor implements SecretKeyRingEditorInterface { for (PGPSecretKey secKey : secretKeys) { if (secKey.getS2KUsage() == SecretKeyPacket.USAGE_CHECKSUM) { hasS2KUsageChecksum = true; + break; } } if (hasS2KUsageChecksum) {