lint fixes

This commit is contained in:
eggyhead committed 2024-01-31 16:51:04 +00:00
1 parent db6df55535
commit 32b63ee094
2 files changed
+22 -23

No files matched your search

+3 -2
View File
@@ -29,8 +29,9 @@ export function isGhes(): boolean {
)
const hostname = ghUrl.hostname.trimEnd().toUpperCase()
const isGitHubHost = (hostname == 'GITHUB.COM')
const isGheHost = (hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST'))
const isGitHubHost = hostname === 'GITHUB.COM'
const isGheHost =
hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST')
return !isGitHubHost && !isGheHost
}