Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Dec 6, 2024
1 parent 228b746 commit 9d1101d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ignite/pkg/archive/tar_gz.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ func CreateArchive(dir string, buf io.Writer) error {
tw := tar.NewWriter(gw)
defer tw.Close()

// Iterate over files from directory and add them to the tar archive
filepath.WalkDir(dir, func(path string, info os.DirEntry, err error) error {
return filepath.WalkDir(dir, func(path string, info os.DirEntry, err error) error {

Check failure on line 23 in ignite/pkg/archive/tar_gz.go

View workflow job for this annotation

GitHub Actions / Lint Go code

unused-parameter: parameter 'info' seems to be unused, consider removing or renaming it as _ (revive)
return addToArchive(tw, path)
})

return nil
}

func addToArchive(tw *tar.Writer, filename string) error {
Expand Down

0 comments on commit 9d1101d

Please sign in to comment.