Skip to content
Permalink
Browse files
format code
  • Loading branch information
wongoo committed Dec 28, 2021
1 parent 226f34b commit 9079120320bfb624d8d625565be64e016fd38717
Showing 1 changed file with 1 addition and 1 deletion.
@@ -473,7 +473,7 @@ func (d *Decoder) decInstance(typ reflect.Type, cls *classInfo) (interface{}, er
if !ok {
return nil, perrors.Errorf("value convert to bool failed, field name:%s", fieldName)
}

if fldRawValue.Kind() == reflect.Ptr && fldRawValue.CanSet() {
if b != nil {
field.Set(reflect.ValueOf(&v))

0 comments on commit 9079120

Please sign in to comment.