fix(bigquery/storage/managedwriter/adapt): fix enum append
Make the enum append more consistent, missed during the initial
fix in
@@ -352,7 +352,7 @@ func normalizeDescriptorInternal(in protoreflect.MessageDescriptor, visitedTypes
} else {
enumDP := protodesc.ToEnumDescriptorProto(inField.Enum())
enumDP.Name = proto.String(enumName)
- root.NestedType = append(resultDP.NestedType, &descriptorpb.DescriptorProto{
+ root.NestedType = append(root.NestedType, &descriptorpb.DescriptorProto{
Name: proto.String(enclosingTypeName),
EnumType: []*descriptorpb.EnumDescriptorProto{enumDP},
})
