Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
Signed-off-by: Jacek Puchta <jacek.puchta@dotdata.com>
  • Loading branch information
puchta committed Oct 25, 2023
1 parent 2cbb9c2 commit cf0c1c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2449,13 +2449,17 @@ export const getPyMetadata = async function (pkgList, fetchDepsInfo) {
if (c.startsWith("License :: ")) {
let licenseName = c.split(" :: ")[c.split(" :: ").length - 1];
let licenseId = findLicenseId(licenseName);
if (licenseId && !p.license.includes(licenseId)) p.license.push(licenseId);
if (licenseId && !p.license.includes(licenseId)) {
p.license.push(licenseId);
}
}
}
}
if (body.info.license) {
let licenseId = findLicenseId(body.info.license);
if (licenseId && !p.license.includes(licenseId)) p.license.push(licenseId);
if (licenseId && !p.license.includes(licenseId)) {
p.license.push(licenseId);
}
}
if (body.info.home_page) {
if (body.info.home_page.includes("git")) {
Expand Down

0 comments on commit cf0c1c0

Please sign in to comment.