1
0
Fork 0

Add missing return statements in PR #1225

This commit is contained in:
Frédéric Guillot 2022-07-18 21:03:18 -07:00
parent 9805654247
commit 055097fdeb

View file

@ -196,9 +196,12 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) {
user, err := h.store.UserByID(entry.UserID)
if err != nil {
json.ServerError(w, r, err)
return
}
if user == nil {
json.NotFound(w, r)
return
}
feedBuilder := storage.NewFeedQueryBuilder(h.store, loggedUserID)