summaryrefslogtreecommitdiffstats
path: root/src/launcher/runner.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/launcher/runner.rs')
-rw-r--r--src/launcher/runner.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/launcher/runner.rs b/src/launcher/runner.rs
index a58602e..f7fd025 100644
--- a/src/launcher/runner.rs
+++ b/src/launcher/runner.rs
@@ -198,6 +198,7 @@ fn search_java_sync(base: impl AsRef<Path>, legacy: bool) -> Result<Option<PathB
Ok(None) // not found (sadface)
}
+//noinspection RsConstantConditionIf
pub async fn find_java(base: impl AsRef<Path>, legacy: bool) -> Result<Option<PathBuf>, io::Error> {
let meta = fs::metadata(&base).await?;
if meta.is_dir() { // do search