Skip to content

Commit

Permalink
camelcase pkgtype
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Feb 15, 2025
1 parent 95fcd2b commit da281e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Licenses/Licenses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function getPackageUrl(pkgName: string, purl: string): string {
githubactions: `https://github.com/actions/${pkgName}`,
};

const pkgtype = Object.keys(urlMap).find((key) =>
const pkgType = Object.keys(urlMap).find((key) =>
purl.startsWith(`pkg:${key}/`),
);

return pkgtype ? urlMap[pkgtype as PackageType] : purl;
return pkgType ? urlMap[pkgType as PackageType] : purl;
}

export const LicensesPage = () => {
Expand Down

0 comments on commit da281e8

Please sign in to comment.