This commit is contained in:
Deepak Dahiya authored and GitHub committed 2022-03-30 07:22:56 +00:00
1 parent 13cc85dbab
commit f4b85ff8ee
4 files changed
+16 -638

No files matched your search

-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";
}