1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-07-01 00:45:27 +02:00

Chore: Code cleanup, remove redundant functionality

This commit is contained in:
Ralph Slooten
2024-03-24 21:37:37 +13:00
parent 61241f11ac
commit 83c70aa7c1
18 changed files with 61 additions and 170 deletions

View File

@ -49,9 +49,7 @@ The --recent flag will only consider files with a modification date within the l
return nil
}
info.ModTime()
if ingestRecent > 0 && time.Now().Sub(info.ModTime()) > time.Duration(ingestRecent)*24*time.Hour {
if ingestRecent > 0 && time.Since(info.ModTime()) > time.Duration(ingestRecent)*24*time.Hour {
return nil
}