Co-authored-by: Sebastian Stenzel <overheadhunter@users.noreply.github.com>

This commit is contained in:
Armin Schrenk
2022-03-03 17:45:21 +01:00
parent 14dc026354
commit 9b001b5071
2 changed files with 13 additions and 16 deletions

View File

@@ -61,15 +61,9 @@ class CustomMountPointChooser implements MountPointChooser {
LOG.debug("Successfully checked custom mount point: {}", mountPoint);
yield false;
}
case NONE -> {
//Requirement "NONE" doesn't make any sense here.
//No need to prepare/verify a Mountpoint without requiring one...
case NONE, UNUSED_ROOT_DIR, PARENT_OPT_MOUNT_POINT -> {
throw new InvalidMountPointException(new IllegalStateException("Illegal MountPointRequirement"));
}
default -> {
//Currently the case for "UNUSED_ROOT_DIR, PARENT_OPT_MOUNT_POINT"
throw new InvalidMountPointException(new IllegalStateException("Not implemented"));
}
};
}