From 1de6085782d08827fe5ef2d2ebb0fa4ee3722f8f Mon Sep 17 00:00:00 2001 From: Samir Patel <48686912+54mir@users.noreply.github.com> Date: Mon, 1 Nov 2021 17:51:16 -0500 Subject: [PATCH] remove empty value check from handler --- http/handler.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/http/handler.go b/http/handler.go index 92f374e84..59a3c3162 100644 --- a/http/handler.go +++ b/http/handler.go @@ -2721,10 +2721,6 @@ func (h *Handler) handlePostImport(w http.ResponseWriter, r *http.Request) { qcx := h.api.Txf().NewQcx() defer qcx.Abort() - if len(req.Values) == 0 { - return - } - if err := h.api.ImportValue(r.Context(), qcx, req, opts...); err != nil { switch errors.Cause(err) { case pilosa.ErrClusterDoesNotOwnShard, pilosa.ErrPreconditionFailed: