Fix code from #4570

This commit is contained in:
WithoutPants 2024-03-06 09:51:43 +11:00
parent 409a200ebc
commit 22986097c4
1 changed files with 2 additions and 2 deletions

View File

@ -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 {