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 {