AlertDelete shortened code

This commit is contained in:
Andrin Fassbind 2022-05-13 16:12:06 +02:00
parent 55517a531e
commit 7dea7919c5
1 changed files with 1 additions and 3 deletions

View File

@ -21,9 +21,7 @@ public class AlertDelete extends Alert {
public boolean showAndGetResult() {
result = false;
showAndWait().ifPresent(type -> {
if (type == yesButton) {
result = true;
}
result = type == yesButton;
});
return result;
}