Skip to content
Prev Previous commit
Next Next commit
ran npm run build
  • Loading branch information
jww3 committed Oct 16, 2024
commit 19060a122d0c2f1ca421f732a370ce68d2fc33de
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2464,10 +2464,10 @@ function getServerApiUrl(url) {
if (hasContent(url, false)) {
let serverUrl = getServerUrl(url);
if (isGhes(url)) {
serverUrl.pathname = "api/v3";
serverUrl.pathname = 'api/v3';
}
else {
serverUrl.hostname = "api." + serverUrl.hostname;
serverUrl.hostname = 'api.' + serverUrl.hostname;
}
return pruneSuffix(serverUrl.toString(), '/');
}
Expand All @@ -2488,7 +2488,7 @@ function pruneSuffix(text, suffix) {
return text;
}
function hasContent(text, allowPureWhitespace) {
let refinedText = text !== null && text !== void 0 ? text : "";
let refinedText = text !== null && text !== void 0 ? text : '';
if (!allowPureWhitespace) {
refinedText = refinedText.trim();
}
Expand Down