Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
Signed-off-by: Jacek Puchta <[email protected]>
  • Loading branch information
puchta committed Oct 26, 2023
1 parent cc4a2b3 commit 3b8699e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,12 @@ export const getNpmMetadata = async function (pkgList) {
body = res.body;
metadata_cache[key] = body;
}
p.description = body.versions?.[p.version]?.description || body.description;
p.description =
body.versions?.[p.version]?.description || body.description;
p.license =
body.versions?.[p.version]?.license ||
body.license ||
(await getRepoLicense(body.repository?.url, undefined));
body.versions?.[p.version]?.license ||
body.license ||
(await getRepoLicense(body.repository?.url, undefined));
if (body.repository && body.repository.url) {
p.repository = { url: body.repository.url };
}
Expand Down

0 comments on commit 3b8699e

Please sign in to comment.