Skip to content

Commit

Permalink
Remove unnecessary cleanUpAll() call from StagingDir.Prepare()
Browse files Browse the repository at this point in the history
Signed-off-by: German Lashevich <[email protected]>
  • Loading branch information
Zebradil committed Jan 10, 2024
1 parent 927b4fe commit f9ac5a0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/vendir/directory/staging_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ func NewStagingDir() (StagingDir, error) {
}

func (d StagingDir) Prepare() error {
err := d.cleanUpAll()
if err != nil {
return err
}

err = os.MkdirAll(d.stagingDir, 0700)
err := os.MkdirAll(d.stagingDir, 0700)
if err != nil {
return fmt.Errorf("Creating staging dir '%s': %s", d.stagingDir, err)
}
Expand Down

0 comments on commit f9ac5a0

Please sign in to comment.