remove empty value check from handler

This commit is contained in:
Samir Patel 2021-11-01 17:51:16 -05:00
parent 002b65c516
commit 1de6085782

View file

@ -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: