fix syntax errors

This commit is contained in:
Arjun Patel
2026-06-11 15:27:27 -07:00
parent a25fb83a2a
commit 6ce7cc8651
+1 -2
View File
@@ -349,7 +349,7 @@ func (h *Handler) DeleteAvatar(w http.ResponseWriter, r *http.Request) {
return return
} }
err := h.humanSvc.DeleteAvatar(r.Context(), humanId) err = h.humanSvc.DeleteAvatar(r.Context(), humanId)
if err != nil { if err != nil {
flog.Error("failed to delete avatar from human", "error", err) flog.Error("failed to delete avatar from human", "error", err)
http.Error(w, "internal server error", http.StatusInternalServerError) http.Error(w, "internal server error", http.StatusInternalServerError)
@@ -394,7 +394,6 @@ func (h *Handler) UpdateAvatar(w http.ResponseWriter, r *http.Request) {
http.Error(w, "internal server error", http.StatusInternalServerError) http.Error(w, "internal server error", http.StatusInternalServerError)
return return
} }
}
err = h.humanSvc.UpdateAvatar(r.Context(), humanId, object.ID) err = h.humanSvc.UpdateAvatar(r.Context(), humanId, object.ID)
if err != nil { if err != nil {