combined into a single if

This commit is contained in:
Jan-Peter Klein
2025-06-16 14:38:37 +02:00
parent c30a28aae0
commit da845c6941

View File

@@ -159,10 +159,8 @@ public class VaultListManager {
try {
VaultState.Value determined = determineVaultState(vault.getPath(), vault.getVaultSettings());
if (determined == MASTERKEY_MISSING) {
if (KeyLoadingStrategy.isHubVault(vault.getVaultConfigCache().getUnchecked().getKeyId().getScheme())) {
determined = LOCKED;
}
if (determined == MASTERKEY_MISSING && KeyLoadingStrategy.isHubVault(vault.getVaultConfigCache().getUnchecked().getKeyId().getScheme())) {
determined = LOCKED;
}
if (determined == LOCKED) {