diff --git a/codec/reflectcodec/struct_fielder.go b/codec/reflectcodec/struct_fielder.go index da9ba38acab2..0431bd996570 100644 --- a/codec/reflectcodec/struct_fielder.go +++ b/codec/reflectcodec/struct_fielder.go @@ -92,7 +92,7 @@ func (s *structFielder) GetSerializedFields(t reflect.Type) ([]FieldDesc, error) nullable bool ) for _, tag := range s.tags { - switch tagValue := field.Tag.Get(tag); tagValue { + switch field.Tag.Get(tag) { case TagValue: captureField = true case TagWithNullableValue: