Skip to content

Commit

Permalink
Make unzip a private function
Browse files Browse the repository at this point in the history
  • Loading branch information
skmgoldin committed Jul 13, 2020
1 parent dc8d7d8 commit 47b87bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/testcases/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func All(opts *TestsCasesOpts) ([]*Case, error) {
if err != nil {
return nil, err
}
err = Unzip(filePath, opts.OutDir)
err = unzip(filePath, opts.OutDir)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -137,8 +137,8 @@ func getConfigsFromDirTree(root string, configs []CaseConfig) ([]CaseConfig, err
return configs, nil
}

// Unzip unzips a zip file into the provided outDir
func Unzip(zipFilePath, outDir string) error {
// unzip unzips a zip file into the provided outDir
func unzip(zipFilePath, outDir string) error {
zipFileReader, err := zip.OpenReader(zipFilePath)
if err != nil {
return err
Expand Down

0 comments on commit 47b87bd

Please sign in to comment.