mirror of
https://github.com/actions/toolkit
synced 2025-05-09 08:33:00 +00:00
Fix linting issues
This commit is contained in:
parent
ed96e21792
commit
0982f1da89
1 changed files with 4 additions and 10 deletions
12
packages/cache/src/internal/tar.ts
vendored
12
packages/cache/src/internal/tar.ts
vendored
|
@ -66,13 +66,10 @@ function getCompressionProgram(compressionMethod: CompressionMethod): string[] {
|
|||
case CompressionMethod.Zstd:
|
||||
return [
|
||||
'--use-compress-program',
|
||||
IS_WINDOWS ? 'zstd -d --long=30' : 'unzstd --long=30',
|
||||
IS_WINDOWS ? 'zstd -d --long=30' : 'unzstd --long=30'
|
||||
]
|
||||
case CompressionMethod.ZstdWithoutLong:
|
||||
return [
|
||||
'--use-compress-program',
|
||||
IS_WINDOWS ? 'zstd -d' : 'unzstd',
|
||||
]
|
||||
return ['--use-compress-program', IS_WINDOWS ? 'zstd -d' : 'unzstd']
|
||||
default:
|
||||
return ['-z']
|
||||
}
|
||||
|
@ -136,10 +133,7 @@ export async function createTar(
|
|||
IS_WINDOWS ? 'zstd -T0 --long=30' : 'zstdmt --long=30'
|
||||
]
|
||||
case CompressionMethod.ZstdWithoutLong:
|
||||
return [
|
||||
'--use-compress-program',
|
||||
IS_WINDOWS ? 'zstd -T0' : 'zstdmt'
|
||||
]
|
||||
return ['--use-compress-program', IS_WINDOWS ? 'zstd -T0' : 'zstdmt']
|
||||
default:
|
||||
return ['-z']
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue