Skip to content

Commit

Permalink
chore(staticheck): fix SA4010 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vlastahajek committed Sep 23, 2020
1 parent def225d commit e5babb3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/testutil/unzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit e5babb3

Please sign in to comment.