Skip to content

Commit

Permalink
rename fsCreator
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Jan 29, 2024
1 parent 0fccd1f commit 6e62d64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/slicer/slicer.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ func Run(options *RunOptions) error {
if reader == nil {
continue
}
fsCreator := fsutil.NewCreator()
creator := fsutil.NewCreator()
err := deb.Extract(reader, &deb.ExtractOptions{
Package: slice.Package,
Extract: extract[slice.Package],
TargetDir: targetDir,
Globbed: globbedPaths,
Creator: fsCreator,
Creator: creator,
})
reader.Close()
packages[slice.Package] = nil
Expand Down Expand Up @@ -213,8 +213,8 @@ func Run(options *RunOptions) error {
return fmt.Errorf("internal error: cannot extract path of kind %q", pathInfo.Kind)
}

fsCreator := fsutil.NewCreator()
err := fsCreator.Create(&fsutil.CreateOptions{
creator := fsutil.NewCreator()
err := creator.Create(&fsutil.CreateOptions{
Path: targetPath,
Mode: tarHeader.FileInfo().Mode(),
Data: fileContent,
Expand Down

0 comments on commit 6e62d64

Please sign in to comment.