remove github-specific section

This commit is contained in:
silverwind 2023-09-29 19:46:39 +02:00
parent eb1ec6b46b
commit 8bb698f9f4
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -243,16 +243,7 @@ function getInfoUrl({repository, homepage, info}, registry, name) {
} }
} }
let url = infoUrl || homepage || ""; return infoUrl || homepage || "";
if (url) {
const u = new URL(url);
// force https for github.com
if (u.protocol === "http:" && u.hostname === "github.com") {
u.protocol = "https:";
url = String(u);
}
}
return url;
} }
function finishWithMessage(message) { function finishWithMessage(message) {