Skip to content

Commit 607d820

Browse files
committed
fix new linter errors
Signed-off-by: Matthias Aßhauer <[email protected]>
1 parent 6cb3bdb commit 607d820

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

main.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,14 @@ import {readdirSync, unlinkSync} from 'fs'
55

66
async function run(): Promise<void> {
77
try {
8-
const {
9-
artifactName,
10-
stripPrefix,
11-
download,
12-
bytesToExtract,
13-
cacheId
14-
} = await get(
15-
core.getInput('repository'),
16-
core.getInput('definitionId'),
17-
core.getInput('artifact'),
18-
core.getInput('stripPrefix'),
19-
core.getInput('reasonFilter')
20-
)
8+
const {artifactName, stripPrefix, download, bytesToExtract, cacheId} =
9+
await get(
10+
core.getInput('repository'),
11+
core.getInput('definitionId'),
12+
core.getInput('artifact'),
13+
core.getInput('stripPrefix'),
14+
core.getInput('reasonFilter')
15+
)
2116
const outputDirectory = core.getInput('path') || artifactName
2217
let useCache = core.getInput('cache') === 'true'
2318
const verbose: number | boolean = ((input?: string) =>
@@ -29,6 +24,7 @@ async function run(): Promise<void> {
2924
try {
3025
return readdirSync(path).length === 0
3126
} catch (e) {
27+
/* eslint @typescript-eslint/no-explicit-any: "off" */
3228
return e instanceof Object && (e as any).code === 'ENOENT'
3329
}
3430
}
@@ -72,7 +68,9 @@ async function run(): Promise<void> {
7268
core.warning(`Failed to cache ${cacheId}`)
7369
}
7470
} catch (e) {
75-
core.warning(`Failed to cache ${cacheId}: ${e instanceof Error && e.message}`)
71+
core.warning(
72+
`Failed to cache ${cacheId}: ${e instanceof Error && e.message}`
73+
)
7674
}
7775

7876
if (storeZipAs) {

0 commit comments

Comments
 (0)