Prechádzať zdrojové kódy

reverse last commit, need a better fix

Tao Wen 8 rokov pred
rodič
commit
b2a706d14b
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      feature_reflect_native.go

+ 2 - 2
feature_reflect_native.go

@@ -700,7 +700,7 @@ func (encoder *marshalerEncoder) EncodeInterface(val interface{}, stream *Stream
 }
 
 func (encoder *marshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
-	return false
+	return encoder.checkIsEmpty.IsEmpty(ptr)
 }
 
 type textMarshalerEncoder struct {
@@ -726,7 +726,7 @@ func (encoder *textMarshalerEncoder) EncodeInterface(val interface{}, stream *St
 }
 
 func (encoder *textMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
-	return false
+	return encoder.checkIsEmpty.IsEmpty(ptr)
 }
 
 type unmarshalerDecoder struct {