Skip to content

Commit

Permalink
add explanation
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Richter <[email protected]>
  • Loading branch information
dragonchaser committed Jun 27, 2024
1 parent b2c8859 commit a64e09c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ocis/pkg/trash/trash.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func removeEmptyFolder(path string, dryRun bool) error {
return nil
}
if err := os.Remove(path); err != nil {
// we do not really care about the error here
// if the folder is not empty we will get an error,
// this is our signal to break out of the recursion
return nil
}
nd := filepath.Dir(path)
Expand Down

0 comments on commit a64e09c

Please sign in to comment.