add inline comment to core/user

This commit is contained in:
perennial
2024-10-20 00:18:27 +11:00
parent 05ce3f0964
commit 0784ca12ec
+3
View File
@@ -515,6 +515,9 @@ func getUserFrequentTags(r *http.Request, ids string, category UserWorkCategory)
}
// Return early if there are no IDs
//
// NOTE: theoretically, this check should never be reached as fetchUserWorks doesn't call
// getUserFrequentTags when len(tagsIDs) == 0, instead returning an empty []FrequentTag
if ids == "" {
return tags, nil
}