Skip to content

Commit

Permalink
Fix code from stashapp#4570
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants authored and halkeye committed Sep 1, 2024
1 parent a622b3f commit 5d58261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/file/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func isNotFound(err error) bool {
var pathErr *fs.PathError
return err != nil &&
(errors.Is(err, fs.ErrNotExist) ||
!errors.Is(err, fs.ErrInvalid) ||
!errors.As(err, &pathErr))
errors.Is(err, fs.ErrInvalid) ||
errors.As(err, &pathErr))
}

func (j *cleanJob) shouldClean(ctx context.Context, f models.File) bool {
Expand Down

0 comments on commit 5d58261

Please sign in to comment.