Skip to content

Commit

Permalink
bug: fixes err check before walk #513 (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan authored Jul 23, 2024
1 parent 47383ba commit b91cd41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/bundlegen/proxybundle/proxybundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,9 @@ func archiveBundle(pathToZip, destinationPath string, sharedflow bool) (err erro

myZip := zip.NewWriter(destinationFile)
err = filepath.Walk(pathToZip, func(filePath string, info os.FileInfo, err error) error {
if err != nil {
return err
}
if info.IsDir() {
// for the first time, add the rootDir as the zipEntry
if parentFolder {
Expand Down

0 comments on commit b91cd41

Please sign in to comment.