Suppress RuntimeException since -1 is possible
This commit is contained in:
@@ -147,7 +147,7 @@ public final class VersionPage extends StackPane implements DecoratorPage {
|
||||
sub = "saves";
|
||||
break;
|
||||
default:
|
||||
throw new RuntimeException();
|
||||
return;
|
||||
}
|
||||
FXUtils.openFolder(new File(profile.getRepository().getRunDirectory(version), sub));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user