Skip to content

Commit

Permalink
remove useless conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jul 29, 2024
1 parent f64253d commit d5644f9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,6 @@ function getInfoUrl({repository, homepage, info}: {repository: PackageRepository
if (infoUrl && typeof repository !== "string" && repository.directory) {
infoUrl = `${infoUrl}/${getSubDir(infoUrl)}/${repository.directory}`;
}
if (!infoUrl && typeof repository !== "string" && repository?.url && /^https?:/.test(repository.url)) {
infoUrl = repository.url;
}
if (!infoUrl && url) {
infoUrl = url;
}
}

return infoUrl || homepage || "";
Expand Down

0 comments on commit d5644f9

Please sign in to comment.