lint fixes

This commit is contained in:
eggyhead committed 2024-01-31 16:51:04 +00:00
1 parent 3d34748d8e
commit b3211b7a79
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import * as cacheUtils from '../src/internal/cacheUtils'
beforeEach(() => { beforeEach(() => {
jest.resetModules() jest.resetModules()
}); })
test('getArchiveFileSizeInBytes returns file size', () => { test('getArchiveFileSizeInBytes returns file size', () => {
const filePath = path.join(__dirname, '__fixtures__', 'helloWorld.txt') const filePath = path.join(__dirname, '__fixtures__', 'helloWorld.txt')
+3 -2
View File
@@ -137,8 +137,9 @@ export function isGhes(): boolean {
) )
const hostname = ghUrl.hostname.trimEnd().toUpperCase() const hostname = ghUrl.hostname.trimEnd().toUpperCase()
const isGitHubHost = (hostname == 'GITHUB.COM') const isGitHubHost = hostname === 'GITHUB.COM'
const isGheHost = (hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST')) const isGheHost =
hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST')
return !isGitHubHost && !isGheHost return !isGitHubHost && !isGheHost
} }