From 6482ee8446f89cf608b7a97e58a4752b412b0b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 22 Jan 2024 18:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96with=20in?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- option.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/option.go b/option.go index cf84620..3008b24 100644 --- a/option.go +++ b/option.go @@ -148,13 +148,7 @@ func WithBatchIn[T op_type.Array](batchIn map[string]T) SetOption { o.In = make(map[string]interface{}) } for field, value := range batchIn { - if nil == value { - continue - } - if len(value) == 0 { - continue - } - o.In[field] = value + WithIn(field, value) } } }