From 4674d559a4e8e36d1440165c2bb991a5a27da811 Mon Sep 17 00:00:00 2001 From: Abhinand Date: Tue, 8 May 2018 22:08:01 -0700 Subject: [PATCH] Fever API: Return response with an empty list if there is no items --- fever/fever.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fever/fever.go b/fever/fever.go index f7e366ad..5d0109da 100644 --- a/fever/fever.go +++ b/fever/fever.go @@ -386,6 +386,7 @@ func (c *Controller) handleItems(w http.ResponseWriter, r *http.Request) { return } + result.Items = make([]item, 0) for _, entry := range entries { isRead := 0 if entry.Status == model.EntryStatusRead {