Skip to content

Commit d9c312d

Browse files
chore: use packageId here and there
1 parent 7ab7d98 commit d9c312d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/upgrade/metadataManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ async function httpsGet(urlString: string): Promise<string> {
4747
class MetadataManager {
4848
private dependencyCheckMetadata: DependencyCheckMetadata = {};
4949

50-
public getDependencyMetadata(groupId: string): DependencyCheckItem | undefined {
51-
if (groupId === Upgrade.DIAGNOSTICS_GROUP_ID_FOR_JAVA_ENGINE) {
50+
public getDependencyMetadata(packageId: string): DependencyCheckItem | undefined {
51+
if (packageId === Upgrade.DIAGNOSTICS_GROUP_ID_FOR_JAVA_ENGINE) {
5252
return {
5353
name: "Java Engine",
5454
supportedVersion: ">=21",
5555
}
5656
}
57-
return this.dependencyCheckMetadata[groupId];
57+
return this.dependencyCheckMetadata[packageId];
5858
}
5959

6060
public async tryRefreshMetadata(context: ExtensionContext) {

src/upgrade/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ export type UpgradeIssue = {
2323
suggestedVersion?: string;
2424
}
2525

26-
export type FileIssues = Record</* groupId */string, UpgradeIssue>;
26+
export type FileIssues = Record</* packageId */string, UpgradeIssue>;

0 commit comments

Comments
 (0)