We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba50252 commit b64631bCopy full SHA for b64631b
1 file changed
nullify.go
@@ -131,10 +131,7 @@ func ptr(t reflect.Type, cfg config) reflect.Type {
131
return reflect.PointerTo(reflect.StructOf(structFields))
132
case reflect.Array:
133
if cfg.bytesAsString && (t.Elem().Kind() == reflect.Uint8 || (t.Elem().Kind() == reflect.Pointer && t.Elem().Elem().Kind() == reflect.Uint8)) {
134
- elemType := reflect.TypeOf("")
135
- if cfg.nullifyArrayElem {
136
- elemType = reflect.PointerTo(elemType)
137
- }
+ elemType := reflect.PointerTo(reflect.TypeOf(""))
138
return elemType
139
}
140
0 commit comments