Skip to content

Commit 48e42b1

Browse files
committed
linting
1 parent b738f10 commit 48e42b1

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

‎packages/attest/src/store.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export const writeAttestation = async (
3131
headers: options.headers,
3232
bundle: attestation as {
3333
mediaType?: string
34-
verificationMaterial?: { [key: string]: unknown }
35-
dsseEnvelope?: { [key: string]: unknown }
34+
verificationMaterial?: {[key: string]: unknown}
35+
dsseEnvelope?: {[key: string]: unknown}
3636
}
3737
})
3838

‎packages/cache/__tests__/saveCache.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ test('save with server error should fail', async () => {
244244
// Mock the FinalizeCacheEntryUpload to succeed (since the error should happen in saveCache)
245245
jest
246246
.spyOn(CacheServiceClientJSON.prototype, 'FinalizeCacheEntryUpload')
247-
.mockReturnValue(Promise.resolve({ok: true, entryId: '4', message: 'Success'}))
247+
.mockReturnValue(
248+
Promise.resolve({ok: true, entryId: '4', message: 'Success'})
249+
)
248250

249251
const createTarMock = jest.spyOn(tar, 'createTar')
250252

‎packages/core/src/platform.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export async function getDetails(): Promise<{
7676
...(await (isWindows
7777
? getWindowsInfo()
7878
: isMacOS
79-
? getMacOsInfo()
80-
: getLinuxInfo())),
79+
? getMacOsInfo()
80+
: getLinuxInfo())),
8181
platform,
8282
arch,
8383
isWindows,

‎packages/glob/src/internal-hash-files.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function hashFiles(
1515
let hasMatch = false
1616
const githubWorkspace = currentWorkspace
1717
? currentWorkspace
18-
: process.env['GITHUB_WORKSPACE'] ?? process.cwd()
18+
: (process.env['GITHUB_WORKSPACE'] ?? process.cwd())
1919
const result = crypto.createHash('sha256')
2020
let count = 0
2121
for await (const file of globber.globGenerator()) {

‎packages/io/__tests__/io.test.ts‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,9 @@ describe('rmRF', () => {
646646
// Node.js 24 changed behavior - fs.readlink no longer includes trailing backslash
647647
// Accept both formats for compatibility
648648
const linkPath = await fs.readlink(symlinkLevel2Directory)
649-
expect(linkPath.replace(/\\+$/, '')).toBe(symlinkDirectory.replace(/\\+$/, ''))
649+
expect(linkPath.replace(/\\+$/, '')).toBe(
650+
symlinkDirectory.replace(/\\+$/, '')
651+
)
650652
} else {
651653
expect(await fs.readlink(symlinkLevel2Directory)).toBe(symlinkDirectory)
652654
}
@@ -1202,9 +1204,8 @@ describe('which', () => {
12021204
const originalPath = process.env['PATH']
12031205
try {
12041206
// modify PATH
1205-
process.env[
1206-
'PATH'
1207-
] = `${process.env['PATH']}${path.delimiter}${testPath}`
1207+
process.env['PATH'] =
1208+
`${process.env['PATH']}${path.delimiter}${testPath}`
12081209

12091210
// find each file
12101211
for (const fileName of Object.keys(files)) {
@@ -1275,9 +1276,8 @@ describe('which', () => {
12751276
await fs.writeFile(notExpectedFilePath, '')
12761277
const originalPath = process.env['PATH']
12771278
try {
1278-
process.env[
1279-
'PATH'
1280-
] = `${process.env['PATH']}${path.delimiter}${testPath}`
1279+
process.env['PATH'] =
1280+
`${process.env['PATH']}${path.delimiter}${testPath}`
12811281
expect(await io.which(fileName)).toBe(expectedFilePath)
12821282
} finally {
12831283
process.env['PATH'] = originalPath
@@ -1439,9 +1439,8 @@ describe('findInPath', () => {
14391439
try {
14401440
// update the PATH
14411441
for (const testPath of testPaths) {
1442-
process.env[
1443-
'PATH'
1444-
] = `${process.env['PATH']}${path.delimiter}${testPath}`
1442+
process.env['PATH'] =
1443+
`${process.env['PATH']}${path.delimiter}${testPath}`
14451444
}
14461445
// exact file names
14471446
expect(await io.findInPath(fileName)).toEqual(filePaths)

0 commit comments

Comments
 (0)