This commit is contained in:
Andrea Spacca
2021-01-05 17:24:16 +01:00
parent 6ac6c8fa99
commit d3381a2293
3 changed files with 15 additions and 17 deletions

View File

@ -377,10 +377,9 @@ func New() *Cmd {
options = append(options, server.RateLimit(v))
}
purgeDays := c.Int("purge-days")
purgeInterval := c.Int("purge-interval")
if purgeDays > 0 && purgeInterval > 0 {
if purgeDays > 0 && purgeInterval > 0 {
options = append(options, server.Purge(purgeDays, purgeInterval))
}