Change "upcoming" to all lowercase and move default clause before the if

This commit is contained in:
nallown 2017-11-11 09:33:28 +00:00
parent 0a807185f6
commit f6a6d17a83

View File

@ -58,11 +58,10 @@ func sync(data *kitsu.Anime) *arn.Anime {
anime.EndDate = attr.EndDate anime.EndDate = attr.EndDate
anime.EpisodeCount = attr.EpisodeCount anime.EpisodeCount = attr.EpisodeCount
anime.EpisodeLength = attr.EpisodeLength anime.EpisodeLength = attr.EpisodeLength
anime.Status = attr.Status
if strings.EqualFold(attr.Status, "tba") || strings.EqualFold(attr.Status, "unreleased") { if attr.Status == "tba" || attr.Status == "unreleased" {
anime.Status = "Upcoming" anime.Status = "upcoming"
} else {
anime.Status = attr.Status
} }
anime.Summary = arn.FixAnimeDescription(attr.Synopsis) anime.Summary = arn.FixAnimeDescription(attr.Synopsis)