Skip to content

Commit

Permalink
chore: polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Oct 5, 2024
1 parent 3efe631 commit 97a73f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/polyglot/java.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use crate::polyglot::PATH_SEPARATOR;

pub fn is_available() -> bool {
let current_dir = env::current_dir().unwrap();
return current_dir.join(".java-version").exists()
current_dir.join(".java-version").exists()
|| current_dir.join(".sdkmanrc").exists()
|| current_dir.join("pom.xml").exists()
|| current_dir.join("build.gradle.kts").exists()
|| current_dir.join("build.gradle").exists();
|| current_dir.join("build.gradle").exists()
}

pub fn get_default_version() -> Option<String> {
Expand Down

0 comments on commit 97a73f3

Please sign in to comment.