This commit is contained in:
kekxv 2025-06-20 13:49:37 +00:00
parent 0f834fcbd3
commit c8a3e928ae
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ function getMaven(version, mirror) {
} }
exports.getMaven = getMaven; exports.getMaven = getMaven;
function get_server_url(mirror) { function get_server_url(mirror) {
if (mirror && mirror.indexOf("http") == 0) { if (mirror && (mirror.indexOf("http") === 0)) {
return mirror; return mirror;
} }
switch (mirror) { switch (mirror) {

View File

@ -32,7 +32,7 @@ export async function getMaven(version: string, mirror: string) {
} }
function get_server_url(mirror: string) { function get_server_url(mirror: string) {
if (mirror && mirror.indexOf("http") == 0) { if (mirror && (mirror.indexOf("http") === 0)) {
return mirror; return mirror;
} }
switch (mirror) { switch (mirror) {