From 7c0107000aa6b1c90e6ae9fc8e40ef78023fa1c2 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 14 Jun 2024 23:33:57 +0300 Subject: [PATCH] Remove Conditional break inside loop Signed-off-by: Sergey Ponomarev --- .../java/org/kse/utilities/history/KeyStoreHistory.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kse/src/main/java/org/kse/utilities/history/KeyStoreHistory.java b/kse/src/main/java/org/kse/utilities/history/KeyStoreHistory.java index ad4caef12..c8e713678 100644 --- a/kse/src/main/java/org/kse/utilities/history/KeyStoreHistory.java +++ b/kse/src/main/java/org/kse/utilities/history/KeyStoreHistory.java @@ -91,14 +91,10 @@ public KeyStoreState getCurrentState() { public void nullPasswords() { KeyStoreState state = initialState; - while (true) { + do { state.nullPasswords(); state = state.nextState(); - - if (state == null) { - break; - } - } + } while (state != null); } /**