From 8bb698f9f47965e5f12d974216b8beb547827d5c Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 29 Sep 2023 19:46:39 +0200 Subject: [PATCH] remove github-specific section --- updates.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/updates.js b/updates.js index 98a7e6c..1554111 100755 --- a/updates.js +++ b/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) {