update
This commit is contained in:
parent
0f834fcbd3
commit
c8a3e928ae
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue