mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
add inline comment to core/user
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user