优化IsNil判断
This commit is contained in:
parent
3533617196
commit
da44ae07ab
5
any.go
5
any.go
@ -43,7 +43,10 @@ type AnyType struct {
|
||||
//
|
||||
// Date : 18:21 2023/6/1
|
||||
func (at *AnyType) IsNil() bool {
|
||||
return at.data == nil
|
||||
if at.data == nil {
|
||||
return true
|
||||
}
|
||||
return reflect.ValueOf(at.data).IsNil()
|
||||
}
|
||||
|
||||
// Type 获取类型
|
||||
|
Loading…
Reference in New Issue
Block a user