From 15670ae15a2d65166267efa5009bea5da5306c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Sat, 8 Oct 2022 14:24:11 +0800 Subject: [PATCH] 1 --- utils/typeconv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/typeconv.go b/utils/typeconv.go index 4c5232f5..66da9b30 100644 --- a/utils/typeconv.go +++ b/utils/typeconv.go @@ -67,7 +67,7 @@ func MustMarshal(obj interface{}) []byte { } func TryInterface2Int64(data interface{}) (num int64, err error) { - if data == nil && IsNil(data) { + if data == nil { return num, errors.New("data is nil") } if dataNumber, ok := data.(int64); ok {