Skip to content

Commit

Permalink
nice^tm
Browse files Browse the repository at this point in the history
  • Loading branch information
arbll committed Mar 4, 2025
1 parent 228282d commit 9940d9f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/fleet/installer/packages/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ func chown(path string, username string, group string) (err error) {
func filesInDir(dir string) ([]string, error) {
var files []string
err := filepath.Walk(dir, func(path string, _ os.FileInfo, err error) error {
if err != nil {
if errors.Is(err, os.ErrNotExist) {
return nil
}
if err != nil && !errors.Is(err, os.ErrNotExist) {
return fmt.Errorf("error walking path: %w", err)
}
files = append(files, path)
Expand Down

0 comments on commit 9940d9f

Please sign in to comment.