remove github-specific section
This commit is contained in:
parent
eb1ec6b46b
commit
8bb698f9f4
11
updates.js
11
updates.js
@ -243,16 +243,7 @@ function getInfoUrl({repository, homepage, info}, registry, name) {
|
||||
}
|
||||
}
|
||||
|
||||
let url = 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;
|
||||
return infoUrl || homepage || "";
|
||||
}
|
||||
|
||||
function finishWithMessage(message) {
|
||||
|
Loading…
Reference in New Issue
Block a user