Small refactorings

This commit is contained in:
Ashley Allen
2018-07-28 15:47:25 +01:00
parent 8891ea4369
commit 320649b81d
2 changed files with 10 additions and 9 deletions

View File

@ -84,12 +84,10 @@ func totalCompleted(user *arn.User, animes []*arn.Anime) int {
completedList := user.AnimeList().FilterStatus(arn.AnimeListStatusCompleted)
for _, anime := range animes {
userAnime := completedList.Find(anime.ID)
if userAnime != nil {
count++;
if completedList.Contains(anime.ID) {
count++
}
}
return count;
return count
}