This commit is contained in:
Deepak Dahiya
2022-03-30 07:22:56 +00:00
committed by GitHub
parent 6d774fcb59
commit 7756e7c4cb
5 changed files with 22 additions and 641 deletions
-7
View File
@@ -123,10 +123,3 @@ export function assertDefined<T>(name: string, value?: T): T {
return value
}
export function isGhes(): boolean {
const ghUrl = new URL(
process.env["GITHUB_SERVER_URL"] || "https://github.com"
);
return ghUrl.hostname.toUpperCase() !== "GITHUB.COM";
}