handle unexpected recovery action type

This commit is contained in:
Jan-Peter Klein
2025-07-10 11:54:00 +02:00
parent 5110b35690
commit 5e956c50c2

View File

@@ -59,9 +59,7 @@ public class RecoveryKeyRecoverController implements FxController {
window.setTitle(resourceBundle.getString("recoveryKey.display.title"));
yield resetPasswordScene;
}
default -> {
yield null;
}
default -> throw new IllegalArgumentException("Unexpected recovery action type: " + recoverType.get());
};
}