Skip to content

Commit 175022e

Browse files
len
1 parent 50e2934 commit 175022e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

api/RestHandler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ func (impl *RestHandlerImpl) GetReleases(w http.ResponseWriter, r *http.Request)
154154
response = response[offset:]
155155
}
156156
}
157+
if len(response) == 0 {
158+
response = make([]*common.Release, 0)
159+
}
157160

158161
impl.WriteJsonResp(w, nil, response, http.StatusOK)
159162
return

0 commit comments

Comments
 (0)