Activate lint gosimple.

This commit is contained in:
jregan
2019-11-14 20:56:39 -08:00
parent 85d34531a2
commit 3da0afdda0
11 changed files with 94 additions and 63 deletions

View File

@@ -159,7 +159,7 @@ func RecentFileExists(path string) bool {
return false
}
}
age := time.Now().Sub(fi.ModTime())
age := time.Since(fi.ModTime())
return age.Minutes() < 3
}