Change "upcoming" to all lowercase and move default clause before the if
This commit is contained in:
parent
0a807185f6
commit
f6a6d17a83
@ -58,11 +58,10 @@ func sync(data *kitsu.Anime) *arn.Anime {
|
||||
anime.EndDate = attr.EndDate
|
||||
anime.EpisodeCount = attr.EpisodeCount
|
||||
anime.EpisodeLength = attr.EpisodeLength
|
||||
|
||||
if strings.EqualFold(attr.Status, "tba") || strings.EqualFold(attr.Status, "unreleased") {
|
||||
anime.Status = "Upcoming"
|
||||
} else {
|
||||
anime.Status = attr.Status
|
||||
|
||||
if attr.Status == "tba" || attr.Status == "unreleased" {
|
||||
anime.Status = "upcoming"
|
||||
}
|
||||
|
||||
anime.Summary = arn.FixAnimeDescription(attr.Synopsis)
|
||||
|
Loading…
Reference in New Issue
Block a user