Skip to content

Commit d76d110

Browse files
committed
pretty
1 parent 5e79511 commit d76d110

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/configuration/configuration.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,15 @@ export function useEnterprise(): boolean {
7171
export function getGitHubApiUri(): string {
7272
if (!useEnterprise()) return DEFAULT_GITHUB_API;
7373
const base = getConfiguration().get<string>("github-enterprise.uri", DEFAULT_GITHUB_API).replace(/\/$/, "");
74-
if(base === DEFAULT_GITHUB_API) {
74+
if (base === DEFAULT_GITHUB_API) {
7575
return base;
76-
}
76+
}
7777

78-
if(base.endsWith(".ghe.com")){
79-
return `api.${base}`
78+
if (base.endsWith(".ghe.com")) {
79+
return `api.${base}`;
8080
} else {
8181
return `${base}/api/v3`;
8282
}
83-
8483
}
8584

8685
async function updateLanguageServerApiUrl(context: vscode.ExtensionContext) {

0 commit comments

Comments
 (0)