Cleanup
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/arn"
|
||||
"github.com/animenotifier/notify.moe/arn/validate"
|
||||
)
|
||||
|
||||
// StartDate ...
|
||||
@ -13,7 +14,7 @@ func StartDate(ctx aero.Context) error {
|
||||
ctx,
|
||||
"Anime without a valid start date",
|
||||
func(anime *arn.Anime) bool {
|
||||
_, err := time.Parse(arn.AnimeDateFormat, anime.StartDate)
|
||||
_, err := time.Parse(validate.DateFormat, anime.StartDate)
|
||||
return err != nil
|
||||
},
|
||||
nil,
|
||||
|
Reference in New Issue
Block a user