diff --git a/internal/testutil/unzip.go b/internal/testutil/unzip.go index 75553f70115..b60ef672cc5 100644 --- a/internal/testutil/unzip.go +++ b/internal/testutil/unzip.go @@ -11,9 +11,6 @@ import ( // Unzip will extract a zip archive into dest func Unzip(src string, dest string) error { - - var filenames []string - r, err := zip.OpenReader(src) if err != nil { return err @@ -30,8 +27,6 @@ func Unzip(src string, dest string) error { return fmt.Errorf("%s: illegal file path", fpath) } - filenames = append(filenames, fpath) - if f.FileInfo().IsDir() { // Make Folder if err := os.MkdirAll(fpath, os.ModePerm); err != nil {