fix: nil slices return [] not null in all API responses

This commit is contained in:
2026-03-28 14:33:36 +03:00
parent c2040656bd
commit a47f703910
2 changed files with 9 additions and 3 deletions
-3
View File
@@ -27,9 +27,6 @@ func (s *Server) listProjects(w http.ResponseWriter, r *http.Request) {
respondError(w, http.StatusInternalServerError, "failed to list projects: "+err.Error())
return
}
if projects == nil {
projects = []store.Project{}
}
respondJSON(w, http.StatusOK, projects)
}