Browse Source

fix setting 'recordDeleteAfter' to zero (#2670) (#2671)

pull/2674/head
Alessandro Ros 2 years ago committed by GitHub
parent
commit
ef19552632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/core/core.go

2
internal/core/core.go

@ -38,7 +38,7 @@ func gatherCleanerEntries(paths map[string]*conf.Path) []record.CleanerEntry { @@ -38,7 +38,7 @@ func gatherCleanerEntries(paths map[string]*conf.Path) []record.CleanerEntry {
out := make(map[record.CleanerEntry]struct{})
for _, pa := range paths {
if pa.Record {
if pa.Record && pa.RecordDeleteAfter != 0 {
entry := record.CleanerEntry{
RecordPath: pa.RecordPath,
RecordFormat: pa.RecordFormat,

Loading…
Cancel
Save