Skip to content

Commit

Permalink
Fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiaaming committed Aug 1, 2024
1 parent 206ff50 commit ca36674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/src/util/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export function getConfigJavaImportGradleJavaHome(): string | null {
return vscode.workspace.getConfiguration("java").get<string | null>("import.gradle.java.home", null);
}

export async function getNeededConfigJavaImportGradleJavaHome(required_jdk_version: number): Promise<string | null> {
export async function getNeededConfigJavaImportGradleJavaHome(requiredJdkVersion: number): Promise<string | null> {
const javaHome = vscode.workspace.getConfiguration("java").get<string | null>("import.gradle.java.home", null);
if (javaHome) {
const javaVersion = await getMajorVersion(javaHome);
if (javaVersion >= required_jdk_version) {
if (javaVersion >= requiredJdkVersion) {
return javaHome;
}
}
Expand Down

0 comments on commit ca36674

Please sign in to comment.