sonar cloud issues solved

This commit is contained in:
Jan-Peter Klein 2023-12-13 15:56:39 +01:00
parent 7b0f616747
commit e9c464ba8f
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E
2 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,6 @@ import org.cryptomator.ui.common.FxController;
import javax.inject.Inject;
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.BooleanExpression;
import javafx.beans.value.ObservableValue;
import javafx.scene.control.Button;
import javafx.scene.control.ChoiceBox;

View File

@ -87,7 +87,7 @@ public class UnlockWorkflow extends Task<Void> {
});
}
private void handleFuseRestartRequiredError(FuseRestartRequiredException fRRE) {
private void handleFuseRestartRequiredError() {
Platform.runLater(() -> {
window.setScene(fuseRestartRequiredScene.get());
window.show();
@ -124,8 +124,8 @@ public class UnlockWorkflow extends Task<Void> {
Throwable throwable = super.getException();
if(throwable instanceof IllegalMountPointException impe) {
handleIllegalMountPointError(impe);
} else if (throwable instanceof FuseRestartRequiredException e) {
handleFuseRestartRequiredError(e);
} else if (throwable instanceof FuseRestartRequiredException _) {
handleFuseRestartRequiredError();
} else {
handleGenericError(throwable);
}