Skip to content

Commit

Permalink
Remove Conditional break inside loop
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
  • Loading branch information
stokito committed Jun 14, 2024
1 parent ee8dc1c commit 7c01070
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 7c01070

Please sign in to comment.