Skip to content

Commit

Permalink
fix(client): autoclean ignores releases downloaded by previous trdl v…
Browse files Browse the repository at this point in the history
…ersions

Fix missing release metafile treated as recently modified.

Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
  • Loading branch information
alexey-igrychev committed Mar 3, 2022
1 parent bebeab0 commit 6e7b770
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions client/pkg/util/metafile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6e7b770

Please sign in to comment.