From 6e7b770b798385e5e15e396ed5da76f8161f6d1a Mon Sep 17 00:00:00 2001 From: Alexey Igrychev Date: Thu, 3 Mar 2022 11:08:49 +0000 Subject: [PATCH] fix(client): autoclean ignores releases downloaded by previous trdl versions Fix missing release metafile treated as recently modified. Signed-off-by: Alexey Igrychev --- client/pkg/util/metafile.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/pkg/util/metafile.go b/client/pkg/util/metafile.go index 02e89d5e..dc2d1b29 100644 --- a/client/pkg/util/metafile.go +++ b/client/pkg/util/metafile.go @@ -30,10 +30,6 @@ func (f Metafile) HasBeenModifiedWithinPeriod(locker lockgate.Locker, period tim func (f Metafile) hasBeenModifiedWithinPeriod(period time.Duration) (bool, error) { info, err := os.Stat(f.filePath) if err != nil { - if isNotExistErr(err) { - return true, nil - } - return false, nil }