Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lvpx committed Aug 18, 2022
1 parent ed96e21 commit 0982f1d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/cache/src/internal/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
Expand Down Expand Up @@ -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']
}
Expand All @@ -158,4 +152,4 @@ export async function createTar(
manifestFilename
]
await execTar(args, compressionMethod, archiveFolder)
}
}

0 comments on commit 0982f1d

Please sign in to comment.