mirror of https://github.com/actions/toolkit
Fix linting
parent
d543359fab
commit
6e888c882e
|
@ -68,10 +68,14 @@ export async function extractTar(
|
||||||
function getCompressionProgram(): string[] {
|
function getCompressionProgram(): string[] {
|
||||||
switch (compressionMethod) {
|
switch (compressionMethod) {
|
||||||
case CompressionMethod.Zstd:
|
case CompressionMethod.Zstd:
|
||||||
if (process.platform === 'win32') return ['--use-compress-program=zstd -d --long=30']
|
if (process.platform === 'win32') {
|
||||||
|
return ['--use-compress-program=zstd -d --long=30']
|
||||||
|
}
|
||||||
return ['--use-compress-program', 'unzstd --long=30']
|
return ['--use-compress-program', 'unzstd --long=30']
|
||||||
case CompressionMethod.ZstdWithoutLong:
|
case CompressionMethod.ZstdWithoutLong:
|
||||||
if (process.platform === 'win32') return ['--use-compress-program=zstd -d']
|
if (process.platform === 'win32') {
|
||||||
|
return ['--use-compress-program=zstd -d']
|
||||||
|
}
|
||||||
return ['--use-compress-program', 'unzstd']
|
return ['--use-compress-program', 'unzstd']
|
||||||
default:
|
default:
|
||||||
return ['-z']
|
return ['-z']
|
||||||
|
@ -110,10 +114,14 @@ export async function createTar(
|
||||||
function getCompressionProgram(): string[] {
|
function getCompressionProgram(): string[] {
|
||||||
switch (compressionMethod) {
|
switch (compressionMethod) {
|
||||||
case CompressionMethod.Zstd:
|
case CompressionMethod.Zstd:
|
||||||
if (process.platform === 'win32') return ['--use-compress-program=zstd -T0 --long=30']
|
if (process.platform === 'win32') {
|
||||||
|
return ['--use-compress-program=zstd -T0 --long=30']
|
||||||
|
}
|
||||||
return ['--use-compress-program', 'zstdmt --long=30']
|
return ['--use-compress-program', 'zstdmt --long=30']
|
||||||
case CompressionMethod.ZstdWithoutLong:
|
case CompressionMethod.ZstdWithoutLong:
|
||||||
if (process.platform === 'win32') return ['--use-compress-program=zstd -T0']
|
if (process.platform === 'win32') {
|
||||||
|
return ['--use-compress-program=zstd -T0']
|
||||||
|
}
|
||||||
return ['--use-compress-program', 'zstdmt']
|
return ['--use-compress-program', 'zstdmt']
|
||||||
default:
|
default:
|
||||||
return ['-z']
|
return ['-z']
|
||||||
|
@ -147,10 +155,14 @@ export async function listTar(
|
||||||
function getCompressionProgram(): string[] {
|
function getCompressionProgram(): string[] {
|
||||||
switch (compressionMethod) {
|
switch (compressionMethod) {
|
||||||
case CompressionMethod.Zstd:
|
case CompressionMethod.Zstd:
|
||||||
if (process.platform === 'win32') return ['--use-compress-program=zstd -d --long=30']
|
if (process.platform === 'win32') {
|
||||||
|
return ['--use-compress-program=zstd -d --long=30']
|
||||||
|
}
|
||||||
return ['--use-compress-program', 'unzstd --long=30']
|
return ['--use-compress-program', 'unzstd --long=30']
|
||||||
case CompressionMethod.ZstdWithoutLong:
|
case CompressionMethod.ZstdWithoutLong:
|
||||||
if (process.platform === 'win32') return ['--use-compress-program=zstd -d']
|
if (process.platform === 'win32') {
|
||||||
|
return ['--use-compress-program=zstd -d']
|
||||||
|
}
|
||||||
return ['--use-compress-program', 'unzstd']
|
return ['--use-compress-program', 'unzstd']
|
||||||
default:
|
default:
|
||||||
return ['-z']
|
return ['-z']
|
||||||
|
|
Loading…
Reference in New Issue