mirror of
https://github.com/stCarolas/setup-maven.git
synced 2026-03-26 13:56:39 +00:00
update
This commit is contained in:
parent
0f834fcbd3
commit
c8a3e928ae
@ -66,7 +66,7 @@ function getMaven(version, mirror) {
|
||||
}
|
||||
exports.getMaven = getMaven;
|
||||
function get_server_url(mirror) {
|
||||
if (mirror && mirror.indexOf("http") == 0) {
|
||||
if (mirror && (mirror.indexOf("http") === 0)) {
|
||||
return mirror;
|
||||
}
|
||||
switch (mirror) {
|
||||
|
||||
@ -32,7 +32,7 @@ export async function getMaven(version: string, mirror: string) {
|
||||
}
|
||||
|
||||
function get_server_url(mirror: string) {
|
||||
if (mirror && mirror.indexOf("http") == 0) {
|
||||
if (mirror && (mirror.indexOf("http") === 0)) {
|
||||
return mirror;
|
||||
}
|
||||
switch (mirror) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user