Use makeWrapper
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -191,14 +191,14 @@ func removeContents(directory string) error {
|
||||
return fmt.Errorf("failed to read dir %s: %w", directory, err)
|
||||
}
|
||||
|
||||
for _, entry := range entries {
|
||||
err := os.RemoveAll(filepath.Join(directory, entry.Name()))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
for _, entry := range entries {
|
||||
err := os.RemoveAll(filepath.Join(directory, entry.Name()))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
return nil
|
||||
}
|
||||
|
||||
func renameOrCopyContents(sourceDirectory string) error {
|
||||
|
Reference in New Issue
Block a user