Better comment for averageScore
This commit is contained in:
parent
9c80f8dd7e
commit
a45b259839
@ -45,7 +45,7 @@ func containsLowerCase(array []string, search string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Counts users average score in genre
|
// Counts users average score for selected animes
|
||||||
func averageScore(user *arn.User, animes []*arn.Anime) float64 {
|
func averageScore(user *arn.User, animes []*arn.Anime) float64 {
|
||||||
if user == nil {
|
if user == nil {
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user