From 22986097c404f6e8b7335b279c920b98c96bdbb4 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Wed, 6 Mar 2024 09:51:43 +1100 Subject: [PATCH] Fix code from #4570 --- pkg/file/clean.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/file/clean.go b/pkg/file/clean.go index 0cf0e8f27..47d84cf13 100644 --- a/pkg/file/clean.go +++ b/pkg/file/clean.go @@ -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 {