Suppress RuntimeException since -1 is possible

This commit is contained in:
huangyuhui
2018-08-17 22:11:46 +08:00
parent 7c3853b0e6
commit 99d2816ea7

View File

@@ -147,7 +147,7 @@ public final class VersionPage extends StackPane implements DecoratorPage {
sub = "saves"; sub = "saves";
break; break;
default: default:
throw new RuntimeException(); return;
} }
FXUtils.openFolder(new File(profile.getRepository().getRunDirectory(version), sub)); FXUtils.openFolder(new File(profile.getRepository().getRunDirectory(version), sub));
} }