1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Setup golangci-lint Github Action

This commit is contained in:
Frédéric Guillot 2021-03-22 21:04:10 -07:00 committed by fguillot
parent 9242350f0e
commit 6e2e2d1665
14 changed files with 52 additions and 66 deletions

View file

@ -136,10 +136,7 @@ func truncate(str string, max int) string {
func isEmail(str string) bool {
_, err := mail.ParseAddress(str)
if err != nil {
return false
}
return true
return err == nil
}
func elapsedTime(printer *locale.Printer, tz string, t time.Time) string {