From 11fb16e89c3ff8f496d89d869e8037deb053d25e Mon Sep 17 00:00:00 2001 From: Bertold Kolics Date: Tue, 2 Jul 2024 10:20:52 -0500 Subject: [PATCH] Fix lint warnings --- tar_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tar_test.go b/tar_test.go index d202a23..e705023 100644 --- a/tar_test.go +++ b/tar_test.go @@ -187,7 +187,7 @@ func (c *tarCompressor) Compress(t *testing.T, sourceDir string, destBase string return writeTar(sourceDir, tarFile) } -func (c *tarZCompressor) Compress(t *testing.T, sourceDir string, destBase string) error { +func (c *tarZCompressor) Compress(t *testing.T, _ string, destBase string) error { t.Helper() // No native Go library for .tar.Z and compress Unix utility is not available on @@ -203,7 +203,7 @@ func (c *tarZCompressor) Compress(t *testing.T, sourceDir string, destBase strin assert.Greater(t, written, int64(0)) require.NoError(t, err) - return err + return nil } func (c *tarBzipCompressor) Compress(t *testing.T, sourceDir string, destBase string) error {