mirror of https://github.com/stashapp/stash.git
Fix code from #4570
This commit is contained in:
parent
409a200ebc
commit
22986097c4
|
@ -325,8 +325,8 @@ func isNotFound(err error) bool {
|
||||||
var pathErr *fs.PathError
|
var pathErr *fs.PathError
|
||||||
return err != nil &&
|
return err != nil &&
|
||||||
(errors.Is(err, fs.ErrNotExist) ||
|
(errors.Is(err, fs.ErrNotExist) ||
|
||||||
!errors.Is(err, fs.ErrInvalid) ||
|
errors.Is(err, fs.ErrInvalid) ||
|
||||||
!errors.As(err, &pathErr))
|
errors.As(err, &pathErr))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (j *cleanJob) shouldClean(ctx context.Context, f models.File) bool {
|
func (j *cleanJob) shouldClean(ctx context.Context, f models.File) bool {
|
||||||
|
|
Loading…
Reference in New Issue