mirror of
http://gitea.com/actions/checkout
synced 2024-11-30 21:22:26 +08:00
ran npm run build
This commit is contained in:
parent
7fcbcdce7d
commit
19060a122d
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -2464,10 +2464,10 @@ function getServerApiUrl(url) {
|
|||||||
if (hasContent(url, false)) {
|
if (hasContent(url, false)) {
|
||||||
let serverUrl = getServerUrl(url);
|
let serverUrl = getServerUrl(url);
|
||||||
if (isGhes(url)) {
|
if (isGhes(url)) {
|
||||||
serverUrl.pathname = "api/v3";
|
serverUrl.pathname = 'api/v3';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
serverUrl.hostname = "api." + serverUrl.hostname;
|
serverUrl.hostname = 'api.' + serverUrl.hostname;
|
||||||
}
|
}
|
||||||
return pruneSuffix(serverUrl.toString(), '/');
|
return pruneSuffix(serverUrl.toString(), '/');
|
||||||
}
|
}
|
||||||
@ -2488,7 +2488,7 @@ function pruneSuffix(text, suffix) {
|
|||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
function hasContent(text, allowPureWhitespace) {
|
function hasContent(text, allowPureWhitespace) {
|
||||||
let refinedText = text !== null && text !== void 0 ? text : "";
|
let refinedText = text !== null && text !== void 0 ? text : '';
|
||||||
if (!allowPureWhitespace) {
|
if (!allowPureWhitespace) {
|
||||||
refinedText = refinedText.trim();
|
refinedText = refinedText.trim();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user