From 0784ca12ec98a3101cb7482d19543c50eb24550e Mon Sep 17 00:00:00 2001 From: perennial Date: Sun, 20 Oct 2024 00:18:27 +1100 Subject: [PATCH] add inline comment to core/user --- core/user.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/user.go b/core/user.go index 11cb969..8aae933 100644 --- a/core/user.go +++ b/core/user.go @@ -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 }