1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 21:29:42 +02:00

Remove duplicate response header write

This commit is contained in:
Harvey Kandola 2018-03-21 10:08:11 +00:00
parent c5acaae677
commit 97cc5374f0

View file

@ -294,7 +294,6 @@ func (h *Handler) GetMeta(w http.ResponseWriter, r *http.Request) {
meta, err := h.Store.Page.GetPageMeta(ctx, pageID)
if err == sql.ErrNoRows {
response.WriteNotFoundError(w, method, pageID)
h.Runtime.Log.Info(method + " no record")
meta = page.Meta{}
response.WriteJSON(w, meta)