Fixed linter errors

This commit is contained in:
2019-09-16 08:17:20 +09:00
parent 47e9c39c70
commit 1d15f441d1
8 changed files with 26 additions and 54 deletions
.golangci.yml
arn
pages/admin
patches
anime-episodes-sort
anime-episodes-upgrade
fix-airing-dates
utils

@ -15,8 +15,6 @@ func main() {
futureThreshold := 8 * 7 * 24 * time.Hour
for anime := range arn.StreamAnime() {
modified := false
// Try to find incorrect airing dates
for _, episode := range anime.Episodes() {
if episode.AiringDate.Start == "" {
@ -35,12 +33,7 @@ func main() {
// Delete the wrong airing date
episode.AiringDate.Start = ""
episode.AiringDate.End = ""
modified = true
}
if modified {
anime.Episodes().Save()
episode.Save()
}
}
}