mirror of
https://github.com/json-iterator/go.git
synced 2025-03-29 21:20:52 +02:00
#78 not null pointer is considered not empty
This commit is contained in:
parent
faaa59222a
commit
76e62088df
@ -107,7 +107,7 @@ func (encoder *optionalEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
||||
if *((*unsafe.Pointer)(ptr)) == nil {
|
||||
return true
|
||||
} else {
|
||||
return encoder.valueEncoder.IsEmpty(*((*unsafe.Pointer)(ptr)))
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user