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.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)
|
||||||
|
Loading…
Reference in New Issue
Block a user