From 0982f1da893275c42a21c55410fdcfa0adef5bf6 Mon Sep 17 00:00:00 2001 From: Lovepreet Singh Date: Thu, 18 Aug 2022 11:44:15 +0000 Subject: [PATCH] Fix linting issues --- packages/cache/src/internal/tar.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/cache/src/internal/tar.ts b/packages/cache/src/internal/tar.ts index cf0ccd0a..2e28ca1a 100644 --- a/packages/cache/src/internal/tar.ts +++ b/packages/cache/src/internal/tar.ts @@ -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'] } @@ -158,4 +152,4 @@ export async function createTar( manifestFilename ] await execTar(args, compressionMethod, archiveFolder) -} \ No newline at end of file +}